Skip to content

Commit 36dbd51

Browse files
authored
Merge pull request #205 from pixelfederation/master
fix for MULTIPLE_PARAM_PARENTHESIS sub tree expressions
2 parents c4f4284 + 1155209 commit 36dbd51

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/PHPSQLParser/processors/ColumnDefinitionProcessor.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,13 @@ public function process($tokens) {
394394
$parsed = $this->processExpressionList($trim);
395395

396396
$last = array_pop($expr);
397-
$last['sub_tree'] = array('expr_type' => ExpressionType::BRACKET_EXPRESSION, 'base_expr' => $trim,
398-
'sub_tree' => $parsed);
397+
$last['sub_tree'] = array(
398+
array(
399+
'expr_type' => ExpressionType::BRACKET_EXPRESSION,
400+
'base_expr' => $trim,
401+
'sub_tree' => $parsed
402+
)
403+
);
399404
$expr[] = $last;
400405
$currCategory = $prevCategory;
401406
break;

0 commit comments

Comments
 (0)