summaryrefslogtreecommitdiffstats
path: root/src/Parser.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Parser.php')
-rw-r--r--src/Parser.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/Parser.php b/src/Parser.php
index 9ef7deb..88451f0 100644
--- a/src/Parser.php
+++ b/src/Parser.php
@@ -110,6 +110,14 @@ class Parser extends Core
'field' => 'end_options',
),
+ 'INTERSECT' => array(
+ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\UnionKeyword',
+ 'field' => 'union',
+ ),
+ 'EXCEPT' => array(
+ 'class' => 'PhpMyAdmin\\SqlParser\\Components\\UnionKeyword',
+ 'field' => 'union',
+ ),
'UNION' => array(
'class' => 'PhpMyAdmin\\SqlParser\\Components\\UnionKeyword',
'field' => 'union',
@@ -427,7 +435,12 @@ class Parser extends Core
continue;
}
- if (($token->keyword === 'UNION') || ($token->keyword === 'UNION ALL') || ($token->keyword === 'UNION DISTINCT')) {
+ if (($token->keyword === 'UNION') ||
+ ($token->keyword === 'UNION ALL') ||
+ ($token->keyword === 'UNION DISTINCT') ||
+ ($token->keyword === 'EXCEPT') ||
+ ($token->keyword === 'INTERSECT')
+ ) {
$unionType = $token->keyword;
continue;
}