Commit 581166da authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

Fix useor for (a,b...) Op ANY/ALL

parent cdfac313
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.2 1998/02/13 08:10:30 vadim Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.3 1998/02/18 03:26:54 vadim Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
...@@ -3043,6 +3043,9 @@ row_expr: '(' row_descriptor ')' IN '(' SubSelect ')' ...@@ -3043,6 +3043,9 @@ row_expr: '(' row_descriptor ')' IN '(' SubSelect ')'
SubLink *n = makeNode(SubLink); SubLink *n = makeNode(SubLink);
n->lefthand = $2; n->lefthand = $2;
n->oper = lcons($4,NIL); n->oper = lcons($4,NIL);
if (strcmp($4,"<>") == 0)
n->useor = true;
else
n->useor = false; n->useor = false;
n->subLinkType = ANY_SUBLINK; n->subLinkType = ANY_SUBLINK;
n->subselect = $7; n->subselect = $7;
...@@ -3123,6 +3126,9 @@ row_expr: '(' row_descriptor ')' IN '(' SubSelect ')' ...@@ -3123,6 +3126,9 @@ row_expr: '(' row_descriptor ')' IN '(' SubSelect ')'
SubLink *n = makeNode(SubLink); SubLink *n = makeNode(SubLink);
n->lefthand = $2; n->lefthand = $2;
n->oper = lcons($4,NIL); n->oper = lcons($4,NIL);
if (strcmp($4,"<>") == 0)
n->useor = true;
else
n->useor = false; n->useor = false;
n->subLinkType = ALL_SUBLINK; n->subLinkType = ALL_SUBLINK;
n->subselect = $7; n->subselect = $7;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment