Skip to content

Commit e20ce2e

Browse files
committed
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
1 parent bccd705 commit e20ce2e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

‎src/Parser.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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',

‎src/Statements/DropStatement.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)