Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Feb 18, 2016
1 parent bccd705 commit e20ce2e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ class Parser
'class' => 'SqlParser\\Components\\JoinKeyword',
'field' => 'join',
),
'ON' => array(
'class' => 'SqlParser\\Components\\Expression',
'field' => 'table',
'options' => array('parseField' => 'table'),
),
'RIGHT JOIN' => array(
'class' => 'SqlParser\\Components\\JoinKeyword',
'field' => 'join',
Expand Down
8 changes: 8 additions & 0 deletions src/Statements/DropStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class DropStatement extends Statement
'_OPTIONS' => array('_OPTIONS', 1),
// Used for select expressions.
'DROP_' => array('DROP', 1),
'ON' => array('ON', 3),
);

/**
Expand All @@ -67,4 +68,11 @@ class DropStatement extends Statement
* @var Expression[]
*/
public $fields;

/**
* Table of the dropped index.
*
* @var Expression
*/
public $table;
}

0 comments on commit e20ce2e

Please sign in to comment.