File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,11 @@ class Parser
185
185
'class ' => 'SqlParser \\Components \\JoinKeyword ' ,
186
186
'field ' => 'join ' ,
187
187
),
188
+ 'ON ' => array (
189
+ 'class ' => 'SqlParser \\Components \\Expression ' ,
190
+ 'field ' => 'table ' ,
191
+ 'options ' => array ('parseField ' => 'table ' ),
192
+ ),
188
193
'RIGHT JOIN ' => array (
189
194
'class ' => 'SqlParser \\Components \\JoinKeyword ' ,
190
195
'field ' => 'join ' ,
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ class DropStatement extends Statement
59
59
'_OPTIONS ' => array ('_OPTIONS ' , 1 ),
60
60
// Used for select expressions.
61
61
'DROP_ ' => array ('DROP ' , 1 ),
62
+ 'ON ' => array ('ON ' , 3 ),
62
63
);
63
64
64
65
/**
@@ -67,4 +68,11 @@ class DropStatement extends Statement
67
68
* @var Expression[]
68
69
*/
69
70
public $ fields ;
71
+
72
+ /**
73
+ * Table of the dropped index.
74
+ *
75
+ * @var Expression
76
+ */
77
+ public $ table ;
70
78
}
You can’t perform that action at this time.
0 commit comments