aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-03-26 21:08:10 +0000
committerBruce Momjian <bruce@momjian.us>1998-03-26 21:08:10 +0000
commit0d8a7dc6a4fce29d36998c4829007baa7af7d3ef (patch)
treeda41d9563c44cc37402af3decc2531f2bef33618 /src/backend/parser/parse_expr.c
parent3b40fd9ea902d46c956d939e07067550b26adb11 (diff)
downloadpostgresql-0d8a7dc6a4fce29d36998c4829007baa7af7d3ef.tar.gz
postgresql-0d8a7dc6a4fce29d36998c4829007baa7af7d3ef.zip
BETWEEN and LIKE patch from Thomas
Diffstat (limited to 'src/backend/parser/parse_expr.c')
-rw-r--r--src/backend/parser/parse_expr.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c
index f4cf3247628..da5f9068577 100644
--- a/src/backend/parser/parse_expr.c
+++ b/src/backend/parser/parse_expr.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.23 1998/02/27 16:07:02 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.24 1998/03/26 21:08:10 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -301,6 +301,21 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
result = (Node *) expr;
break;
}
+/* These nodes do _not_ come from the original parse tree.
+ * They result from parser transformation in this phase.
+ * At least one construct (BETWEEN/AND) puts the same nodes
+ * into two branches of the parse tree. Hence, some nodes
+ * are transformed twice. These nodes come from transforming
+ * a function call. Let's try just passing them through...
+ * - thomas 1998-03-14
+ */
+ case T_Expr:
+ case T_Var:
+ case T_Const:
+ {
+ result = (Node *) expr;
+ break;
+ }
default:
/* should not reach here */
elog(ERROR, "transformExpr: does not know how to transform node %d",