mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Fix useor for (a,b...) Op ANY/ALL
This commit is contained in:
@ -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 ')'
|
|||||||
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 ')'
|
|||||||
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;
|
||||||
|
Reference in New Issue
Block a user