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

Commitf99dcd6

Browse files
committed
Fix for AS name quotation problem.
1 parent976b386 commitf99dcd6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/backend/nodes/outfuncs.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.37 1998/07/09 14:59:27 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.38 1998/07/13 21:27:58 momjian Exp $
1111
*
1212
* NOTES
1313
* Every (plan) node in POSTGRES has an associated "out" routine which
@@ -660,7 +660,10 @@ _outResdom(StringInfo str, Resdom *node)
660660
sprintf(buf," :restypmod %d ",node->restypmod);
661661
appendStringInfo(str,buf);
662662
appendStringInfo(str," :resname ");
663-
sprintf(buf,"\"%s\"",node->resname);/* fix for SELECT col AS "my name" */
663+
if (*node->resname)
664+
sprintf(buf,"\"%s\"",node->resname);/* fix for SELECT col AS "my name" */
665+
else
666+
buf[0]='\0';
664667
appendStringInfo(str,buf);
665668
sprintf(buf," :reskey %d ",node->reskey);
666669
appendStringInfo(str,buf);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp