Skip to content

Commit 82bcc19

Browse files
author
phosco@gmx.de
committed
ADD: a TODO has been added. If the left side of a SET expression is a reserved keyword, it should be changed to colref.
git-svn-id: https://php-sql-parser.googlecode.com/svn/trunk@1347 44dcfd11-89b7-3d55-2063-5c365055f77f
1 parent 670c997 commit 82bcc19

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/PHPSQLParser/processors/SetProcessor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ protected function processExpressionList($tokens) {
5757
*/
5858
protected function processAssignment($base_expr) {
5959
$assignment = $this->processExpressionList($this->splitSQLIntoTokens($base_expr));
60+
61+
// TODO: if the left side of the assignment is a reserved keyword, it should be changed to colref
62+
6063
return array('expr_type' => ExpressionType::EXPRESSION, 'base_expr' => trim($base_expr),
6164
'sub_tree' => (empty($assignment) ? false : $assignment));
6265
}

0 commit comments

Comments
 (0)