Skip to content

Commit

Permalink
Keep the clauses defined for DeleteStatement
Browse files Browse the repository at this point in the history
These may be required for use in various Utils like Utils/Query.php's replaceClause().

Fix phpmyadmin/phpmyadmin#12612

Signed-off-by: Deven Bansod <[email protected]>
  • Loading branch information
devenbansod committed Oct 3, 2016
1 parent 46271f3 commit c6c7de7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Statements/DeleteStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,25 @@ class DeleteStatement extends Statement
'IGNORE' => 3,
);

/**
* 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.
*
Expand Down

0 comments on commit c6c7de7

Please sign in to comment.