Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit581166d

Browse files
committed
Fix useor for (a,b...) Op ANY/ALL
1 parentcdfac31 commit581166d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

‎src/backend/parser/gram.y

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.2 1998/02/13 08:10:30 vadim Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.3 1998/02/18 03:26:54 vadim Exp $
1414
*
1515
* HISTORY
1616
* AUTHORDATEMAJOR EVENT
@@ -3043,7 +3043,10 @@ row_expr: '(' row_descriptor ')' IN '(' SubSelect ')'
30433043
SubLink *n = makeNode(SubLink);
30443044
n->lefthand = $2;
30453045
n->oper = lcons($4,NIL);
3046-
n->useor = false;
3046+
if (strcmp($4,"<>") == 0)
3047+
n->useor = true;
3048+
else
3049+
n->useor = false;
30473050
n->subLinkType = ANY_SUBLINK;
30483051
n->subselect = $7;
30493052
$$ = (Node *)n;
@@ -3123,7 +3126,10 @@ row_expr: '(' row_descriptor ')' IN '(' SubSelect ')'
31233126
SubLink *n = makeNode(SubLink);
31243127
n->lefthand = $2;
31253128
n->oper = lcons($4,NIL);
3126-
n->useor = false;
3129+
if (strcmp($4,"<>") == 0)
3130+
n->useor = true;
3131+
else
3132+
n->useor = false;
31273133
n->subLinkType = ALL_SUBLINK;
31283134
n->subselect = $7;
31293135
$$ = (Node *)n;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp