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

Commit0d8a7dc

Browse files
committed
BETWEEN and LIKE patch from Thomas
1 parent3b40fd9 commit0d8a7dc

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

‎src/backend/parser/parse_expr.c

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.23 1998/02/27 16:07:02 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.24 1998/03/26 21:08:10 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -301,6 +301,21 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
301301
result= (Node*)expr;
302302
break;
303303
}
304+
/* These nodes do _not_ come from the original parse tree.
305+
* They result from parser transformation in this phase.
306+
* At least one construct (BETWEEN/AND) puts the same nodes
307+
* into two branches of the parse tree. Hence, some nodes
308+
* are transformed twice. These nodes come from transforming
309+
* a function call. Let's try just passing them through...
310+
* - thomas 1998-03-14
311+
*/
312+
caseT_Expr:
313+
caseT_Var:
314+
caseT_Const:
315+
{
316+
result= (Node*)expr;
317+
break;
318+
}
304319
default:
305320
/* should not reach here */
306321
elog(ERROR,"transformExpr: does not know how to transform node %d",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp