From fd19a350ea0a69f26ac2f8cdc28fdd4ff9264adb Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 5 Aug 1999 02:33:54 +0000 Subject: Revise parse_coerce() to handle coercion of int and float constants, not only string constants, at parse time. Get rid of parser_typecast2(), which is bogus and redundant... --- src/backend/parser/parse_func.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'src/backend/parser/parse_func.c') diff --git a/src/backend/parser/parse_func.c b/src/backend/parser/parse_func.c index 33d93fc9eb8..65f177885d4 100644 --- a/src/backend/parser/parse_func.c +++ b/src/backend/parser/parse_func.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.50 1999/07/17 20:17:24 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.51 1999/08/05 02:33:54 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1278,21 +1278,8 @@ make_arguments(ParseState *pstate, i < nargs; i++, current_fargs = lnext(current_fargs)) { - - /* - * unspecified type for string constant? then use heuristics for - * conversion... - */ - if (input_typeids[i] == UNKNOWNOID && function_typeids[i] != InvalidOid) - { - lfirst(current_fargs) = parser_typecast2(lfirst(current_fargs), - input_typeids[i], - typeidType(function_typeids[i]), - -1); - } - /* types don't match? then force coersion using a function call... */ - else if (input_typeids[i] != function_typeids[i]) + if (input_typeids[i] != function_typeids[i]) { lfirst(current_fargs) = coerce_type(pstate, lfirst(current_fargs), -- cgit v1.2.3