Skip to content

Commit

Permalink
Merge pull request #205 from pixelfederation/master
Browse files Browse the repository at this point in the history
fix for MULTIPLE_PARAM_PARENTHESIS sub tree expressions
  • Loading branch information
greenlion committed Jul 8, 2016
2 parents c4f4284 + 1155209 commit 36dbd51
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/PHPSQLParser/processors/ColumnDefinitionProcessor.php
Expand Up @@ -394,8 +394,13 @@ public function process($tokens) {
$parsed = $this->processExpressionList($trim);

$last = array_pop($expr);
$last['sub_tree'] = array('expr_type' => ExpressionType::BRACKET_EXPRESSION, 'base_expr' => $trim,
'sub_tree' => $parsed);
$last['sub_tree'] = array(
array(
'expr_type' => ExpressionType::BRACKET_EXPRESSION,
'base_expr' => $trim,
'sub_tree' => $parsed
)
);
$expr[] = $last;
$currCategory = $prevCategory;
break;
Expand Down

0 comments on commit 36dbd51

Please sign in to comment.