Skip to content

Commit 36c356e

Browse files
committed
Missed one place that can be simplified after recent Param/Const cleanup.
1 parent 9359694 commit 36c356e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/parser/parse_coerce.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* 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 $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -570,8 +570,7 @@ coerce_type_typmod(Node *node, Oid targetTypeId, int32 targetTypMod,
570570
*
571571
* See the comments for the similar case in coerce_type.
572572
*/
573-
if (node && IsA(node, Const) &&
574-
!((Const *) node)->constisnull)
573+
if (node && IsA(node, Const))
575574
node = eval_const_expressions(fcall);
576575
else
577576
node = fcall;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy