src/Statement.php 1 location
|
@@ 252-254 (lines=3) @@
|
| 249 |
|
|
| 250 |
|
// Unions are parsed by the parser because they represent more than |
| 251 |
|
// one statement. |
| 252 |
|
if (($token->value === 'UNION') || ($token->value === 'UNION ALL') || ($token->value === 'UNION DISTINCT')) { |
| 253 |
|
break; |
| 254 |
|
} |
| 255 |
|
|
| 256 |
|
$lastIdx = $list->idx; |
| 257 |
|
|
src/Parser.php 1 location
|
@@ 457-460 (lines=4) @@
|
| 454 |
|
continue; |
| 455 |
|
} |
| 456 |
|
|
| 457 |
|
if (($token->value === 'UNION') || ($token->value === 'UNION ALL') || ($token->value === 'UNION DISTINCT')) { |
| 458 |
|
$unionType = $token->value; |
| 459 |
|
continue; |
| 460 |
|
} |
| 461 |
|
|
| 462 |
|
// Checking if it is a known statement that can be parsed. |
| 463 |
|
if (empty(static::$STATEMENT_PARSERS[$token->value])) { |