Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0d8a7dc

Browse files
committed
BETWEEN and LIKE patch from Thomas
1 parent 3b40fd9 commit 0d8a7dc

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+
case T_Expr:
313+
case T_Var:
314+
case T_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)