|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.88 2002/11/26 03:01:58 tgl Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.89 2002/11/30 18:28:49 tgl Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -570,8 +570,7 @@ coerce_type_typmod(Node *node, Oid targetTypeId, int32 targetTypMod,
|
570 | 570 | *
|
571 | 571 | * See the comments for the similar case in coerce_type.
|
572 | 572 | */
|
573 |
| -if (node&&IsA(node,Const)&& |
574 |
| -!((Const*)node)->constisnull) |
| 573 | +if (node&&IsA(node,Const)) |
575 | 574 | node=eval_const_expressions(fcall);
|
576 | 575 | else
|
577 | 576 | node=fcall;
|
|