| @@ 631-642 (lines=12) @@ | ||
| 628 | $by = explode(',', (string) $by); |
|
| 629 | } |
|
| 630 | ||
| 631 | foreach ($by as $val) { |
|
| 632 | $val = trim($val); |
|
| 633 | ||
| 634 | if ($val != '') { |
|
| 635 | // Add the table prefix if we are using table.column names |
|
| 636 | if (strpos($val, '.')) { |
|
| 637 | $val = $this->config['table_prefix'].$val; |
|
| 638 | } |
|
| 639 | ||
| 640 | $this->groupby[] = $this->driver->escape_column($val); |
|
| 641 | } |
|
| 642 | } |
|
| 643 | ||
| 644 | return $this; |
|
| 645 | } |
|
| @@ 751-758 (lines=8) @@ | ||
| 748 | $key = array($key => $value); |
|
| 749 | } |
|
| 750 | ||
| 751 | foreach ($key as $k => $v) { |
|
| 752 | // Add a table prefix if the column includes the table. |
|
| 753 | if (strpos($k, '.')) { |
|
| 754 | $k = $this->config['table_prefix'].$k; |
|
| 755 | } |
|
| 756 | ||
| 757 | $this->set[$k] = $this->driver->escape($v); |
|
| 758 | } |
|
| 759 | ||
| 760 | return $this; |
|
| 761 | } |
|