diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-01-17 02:04:16 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-01-17 02:04:16 +0000 |
commit | ac4878a06009c34bf26b12f358fc45bef13829bf (patch) | |
tree | d26aace1a158c3a4b2a8d28e95adad2dc5a53641 /src/backend/parser/parse_clause.c | |
parent | ceca03600e4dce4848d712355a720ddad2a5e476 (diff) | |
download | postgresql-ac4878a06009c34bf26b12f358fc45bef13829bf.tar.gz postgresql-ac4878a06009c34bf26b12f358fc45bef13829bf.zip |
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.
Diffstat (limited to 'src/backend/parser/parse_clause.c')
-rw-r--r-- | src/backend/parser/parse_clause.c | 4 |
1 files changed, 2 insertions, 2 deletions
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" |