File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -185,6 +185,11 @@ class Parser
185185 'class ' => 'SqlParser \\Components \\JoinKeyword ' ,
186186 'field ' => 'join ' ,
187187 ),
188+ 'ON ' => array (
189+ 'class ' => 'SqlParser \\Components \\Expression ' ,
190+ 'field ' => 'table ' ,
191+ 'options ' => array ('parseField ' => 'table ' ),
192+ ),
188193 'RIGHT JOIN ' => array (
189194 'class ' => 'SqlParser \\Components \\JoinKeyword ' ,
190195 'field ' => 'join ' ,
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ class DropStatement extends Statement
5959 '_OPTIONS ' => array ('_OPTIONS ' , 1 ),
6060 // Used for select expressions.
6161 'DROP_ ' => array ('DROP ' , 1 ),
62+ 'ON ' => array ('ON ' , 3 ),
6263 );
6364
6465 /**
@@ -67,4 +68,11 @@ class DropStatement extends Statement
6768 * @var Expression[]
6869 */
6970 public $ fields ;
71+
72+ /**
73+ * Table of the dropped index.
74+ *
75+ * @var Expression
76+ */
77+ public $ table ;
7078}
You can’t perform that action at this time.
0 commit comments