src/Phossa2/Query/Traits/Clause/ColTrait.php 1 location
|
@@ 173-177 (lines=5) @@
|
| 170 |
|
if (empty($clause)) { |
| 171 |
|
$result[] = '*'; |
| 172 |
|
} else { |
| 173 |
|
foreach ($clause as $as => $col) { |
| 174 |
|
$alias = $this->quoteAlias($as); |
| 175 |
|
$field = $this->quoteItem($col[0], $col[1]); |
| 176 |
|
$result[] = $field . $alias; |
| 177 |
|
} |
| 178 |
|
} |
| 179 |
|
|
| 180 |
|
return $this->joinClause('', ',', $result, $settings); |
src/Phossa2/Query/Traits/Clause/FromTrait.php 1 location
|
@@ 87-91 (lines=5) @@
|
| 84 |
|
{ |
| 85 |
|
$result = []; |
| 86 |
|
$clause = &$this->getClause('FROM'); |
| 87 |
|
foreach ($clause as $as => $tbl) { |
| 88 |
|
$alias = $this->quoteAlias($as); |
| 89 |
|
$table = $this->quoteItem($tbl); |
| 90 |
|
$result[] = $table . $alias; |
| 91 |
|
} |
| 92 |
|
return $this->joinClause('FROM', ',', $result, $settings); |
| 93 |
|
} |
| 94 |
|
|