diff options
author | Deven Bansod <devenbansod.bits@gmail.com> | 2016-10-03 21:25:15 +0530 |
---|---|---|
committer | Deven Bansod <devenbansod.bits@gmail.com> | 2016-10-03 21:26:13 +0530 |
commit | c6c7de777ab3c8944572434443a1d37c9ab18ff5 (patch) | |
tree | 6161404fe5186fe953098b3805e7cb8879d3c561 /src | |
parent | 46271f3c398c0e8d86142518008ef6e309bbf4fc (diff) | |
download | sql-parser-c6c7de777ab3c8944572434443a1d37c9ab18ff5.zip sql-parser-c6c7de777ab3c8944572434443a1d37c9ab18ff5.tar.gz sql-parser-c6c7de777ab3c8944572434443a1d37c9ab18ff5.tar.bz2 |
Keep the clauses defined for DeleteStatement
These may be required for use in various Utils like Utils/Query.php's replaceClause().
Fix phpmyadmin/phpmyadmin#12612
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Statements/DeleteStatement.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Statements/DeleteStatement.php b/src/Statements/DeleteStatement.php index 394c0f4..0c66138 100644 --- a/src/Statements/DeleteStatement.php +++ b/src/Statements/DeleteStatement.php @@ -64,6 +64,25 @@ class DeleteStatement extends Statement ); /** + * The clauses of this statement, in order. + * + * @see Statement::$CLAUSES + * + * @var array + */ + public static $CLAUSES = array( + 'DELETE' => array('DELETE', 2), + // Used for options. + '_OPTIONS' => array('_OPTIONS', 1), + 'FROM' => array('FROM', 3), + 'PARTITION' => array('PARTITION', 3), + 'USING' => array('USING', 3), + 'WHERE' => array('WHERE', 3), + 'ORDER BY' => array('ORDER BY', 3), + 'LIMIT' => array('LIMIT', 3), + ); + + /** * Table(s) used as sources for this statement. * * @var Expression[] |