From: Bruce Momjian Date: Sun, 16 Jan 2000 05:18:19 +0000 (+0000) Subject: Fix passing of atttypmod that Tom found. X-Git-Tag: REL7_0~835 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=faff1b776bece20193e5e36ac3c4c1d37457e0b3;p=postgresql Fix passing of atttypmod that Tom found. --- diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index dab7161c04..2b0414f802 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.63 1999/12/24 06:43:33 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.64 2000/01/16 05:18:19 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -63,7 +63,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence) Value *val = &con->val; if (con->typename != NULL) - result = parser_typecast(val, con->typename, -1); + result = parser_typecast(val, con->typename, con->typename->typmod); else result = (Node *) make_const(val); break;