| @@ 199-202 (lines=4) @@ | ||
| 196 | if ($this->alias) { |
|
| 197 | $sql .= ' AS '.NodeFactory::escapeDBItem($this->alias, $dbConnection); |
|
| 198 | } |
|
| 199 | if ($this->refClause) { |
|
| 200 | $sql .= ' ON '; |
|
| 201 | $sql .= NodeFactory::toSql($this->refClause, $dbConnection, $parameters, ' ', true, $indent, $conditionsMode); |
|
| 202 | } |
|
| 203 | ||
| 204 | return $sql; |
|
| 205 | } |
|
| @@ 182-185 (lines=4) @@ | ||
| 179 | if ($this->alias) { |
|
| 180 | $sql .= ' AS '.NodeFactory::escapeDBItem($this->alias, $dbConnection); |
|
| 181 | } |
|
| 182 | if ($this->refClause) { |
|
| 183 | $sql .= ' ON '; |
|
| 184 | $sql .= NodeFactory::toSql($this->refClause, $dbConnection, $parameters, ' ', true, $indent, $conditionsMode); |
|
| 185 | } |
|
| 186 | ||
| 187 | return $sql; |
|
| 188 | } |
|
| @@ 47-49 (lines=3) @@ | ||
| 44 | { |
|
| 45 | $fullSql = ''; |
|
| 46 | ||
| 47 | if ($this->value) { |
|
| 48 | $fullSql = NodeFactory::toSql($this->value, $dbConnection, $parameters, ' ', false, $indent, $conditionsMode); |
|
| 49 | } |
|
| 50 | ||
| 51 | foreach ($this->getOperands() as $operand) { |
|
| 52 | $sql = NodeFactory::toSql($operand, $dbConnection, $parameters, ' ', false, $indent, $conditionsMode); |
|
| @@ 334-336 (lines=3) @@ | ||
| 331 | $sql .= implode(' ', $this->options)."\n"; |
|
| 332 | } |
|
| 333 | ||
| 334 | if (!empty($this->columns)) { |
|
| 335 | $sql .= NodeFactory::toSql($this->columns, $dbConnection, $parameters, ',', false, $indent + 2, $conditionsMode); |
|
| 336 | } |
|
| 337 | ||
| 338 | if (!empty($this->from)) { |
|
| 339 | $from = NodeFactory::toSql($this->from, $dbConnection, $parameters, ' ', false, $indent + 2, $conditionsMode); |
|