From faff1b776bece20193e5e36ac3c4c1d37457e0b3 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 16 Jan 2000 05:18:19 +0000 Subject: [PATCH] Fix passing of atttypmod that Tom found. --- src/backend/parser/parse_expr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.40.0