| @@ 70-76 (lines=7) @@ | ||
| 67 | * @param bool $distinct [optional] |
|
| 68 | * @return string |
|
| 69 | */ |
|
| 70 | protected function prepareSelect($table, $columns, $joins = null, $where = null, $order = null, $limit = null, $distinct = false) { |
|
| 71 | $table = $this->identifier($table); |
|
| 72 | ||
| 73 | $distinct = $distinct ? 'DISTINCT' : ''; |
|
| 74 | ||
| 75 | return static::concatenate(array('SELECT', $distinct, $columns, 'FROM', $table, $joins, $where, $order, $limit)); |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * Prepare an UPDATE statement with the given table, data and clauses. |
|
| @@ 56-62 (lines=7) @@ | ||
| 53 | * @param bool $distinct [optional] |
|
| 54 | * @return string |
|
| 55 | */ |
|
| 56 | protected function prepareSelect($table, $columns, $joins = null, $where = null, $order = null, $limit = null, $distinct = false) { |
|
| 57 | $table = $this->identifier($table); |
|
| 58 | ||
| 59 | $distinct = $distinct ? 'DISTINCT' : ''; |
|
| 60 | ||
| 61 | return static::concatenate(array('SELECT', $distinct, $limit, $columns, 'FROM', $table, $joins, $where, $order)); |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * Prepare an UPDATE statement with the given table, data and clauses. |
|