From ac4878a06009c34bf26b12f358fc45bef13829bf Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 17 Jan 2000 02:04:16 +0000 Subject: Pass atttypmod to CoerceTargetExpr, so that it can pass it on to coerce_type, so that the right things happen when coercing a previously- unknown constant to a destination data type. --- src/backend/parser/parse_clause.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/parser/parse_clause.c') diff --git a/src/backend/parser/parse_clause.c b/src/backend/parser/parse_clause.c index 1f83150def1..0890ef7a630 100644 --- a/src/backend/parser/parse_clause.c +++ b/src/backend/parser/parse_clause.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.48 1999/12/17 14:47:35 thomas Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.49 2000/01/17 02:04:16 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -757,7 +757,7 @@ transformUnionClause(List *unionClause, List *targetlist) Node *expr; expr = ((TargetEntry *) lfirst(next_target))->expr; - expr = CoerceTargetExpr(NULL, expr, itype, otype); + expr = CoerceTargetExpr(NULL, expr, itype, otype, -1); if (expr == NULL) { elog(ERROR, "Unable to transform %s to %s" -- cgit v1.2.3