From 3dd23aadf0746ba53ffe3ca76863a0ffbbeb0c68 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 22 Aug 1997 00:02:19 +0000 Subject: Allow functions and operators on internally-identical types to succeed. --- src/backend/parser/analyze.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/parser/analyze.c') diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index 6c703b77814..9b4c88b9ae9 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.34 1997/08/19 21:32:11 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.35 1997/08/22 00:02:04 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1345,7 +1345,7 @@ make_targetlist_expr(ParseState *pstate, } else if (attrtype != type_id) { if ((attrtype == INT2OID) && (type_id == INT4OID)) - lfirst(expr) = lispInteger (INT2OID); + lfirst(expr) = lispInteger (INT2OID); do CASHOID too else if ((attrtype == FLOAT4OID) && (type_id == FLOAT8OID)) lfirst(expr) = lispInteger (FLOAT4OID); else -- cgit v1.2.3