Fix passing of atttypmod that Tom found.

This commit is contained in:
Bruce Momjian 2000-01-16 05:18:19 +00:00
parent fae5d81c68
commit faff1b776b
1 changed files with 2 additions and 2 deletions

View File

@ -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;