From 3ace5fd08247726756d695156e8ccb075d5f76d5 Mon Sep 17 00:00:00 2001 From: Thomas G. Lockhart Date: Sat, 9 May 1998 23:31:34 +0000 Subject: Add capabilities for automatic type conversion. --- src/backend/parser/parse_expr.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/backend/parser/parse_expr.c') diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index 39b9fd09dc0..af8424ed0c5 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.27 1998/04/26 04:06:45 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.28 1998/05/09 23:29:53 thomas Exp $ * *------------------------------------------------------------------------- */ @@ -301,12 +301,14 @@ 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. + +/* These nodes do _not_ come from the original parse tree, + * but 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... + * into two branches of the parse tree; hence, some nodes + * are transformed twice. + * These cases below come from transforming function calls. + * Let's try just passing them through... * - thomas 1998-03-14 */ case T_Expr: @@ -506,6 +508,10 @@ parser_typecast(Value *expr, TypeName *typename, int16 atttypmod) return (Node *) adt; } + +/* parser_typecast2() + * Convert (only) constants to specified type. + */ Node * parser_typecast2(Node *expr, Oid exprType, Type tp, int16 atttypmod) { -- cgit v1.2.3