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

Commit804f016

Browse files
committed
Fix outfuncs.c to dump A_Const nodes representing NULLs correctly. This has
been broken since forever, but was not noticed because people seldom lookat raw parse trees. AFAIK, no impact on users except that debug_print_parsemight fail; but patch it all the way back anyway. Per report from Jeff Ross.
1 parent74fbe9c commit804f016

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/backend/nodes/outfuncs.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.311 2007/06/11 22:22:40 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.312 2007/07/17 01:21:43 tgl Exp $
1212
*
1313
* NOTES
1414
* Every node type that can appear in stored rules' parsetrees *must*
@@ -1900,6 +1900,10 @@ _outValue(StringInfo str, Value *value)
19001900
/* internal representation already has leading 'b' */
19011901
appendStringInfoString(str,value->val.str);
19021902
break;
1903+
caseT_Null:
1904+
/* this is seen only within A_Const, not in transformed trees */
1905+
appendStringInfoString(str,"NULL");
1906+
break;
19031907
default:
19041908
elog(ERROR,"unrecognized node type: %d", (int)value->type);
19051909
break;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp