Skip to content

Commit faff1b7

Browse files
committed
Fix passing of atttypmod that Tom found.
1 parent fae5d81 commit faff1b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/parser/parse_expr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.63 1999/12/24 06:43:33 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.64 2000/01/16 05:18:19 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -63,7 +63,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
6363
Value *val = &con->val;
6464

6565
if (con->typename != NULL)
66-
result = parser_typecast(val, con->typename, -1);
66+
result = parser_typecast(val, con->typename, con->typename->typmod);
6767
else
6868
result = (Node *) make_const(val);
6969
break;

0 commit comments

Comments
 (0)