Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36c356e

Browse files
committed
Missed one place that can be simplified after recent Param/Const cleanup.
1 parent9359694 commit36c356e

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)

[8]ページ先頭

©2009-2025 Movatter.jp