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

Commit92286bd

Browse files
committed
Clean up sloppy coding of _outAExpr().
1 parentff566b2 commit92286bd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎src/backend/nodes/outfuncs.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
*$Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.115 2000/04/26 23:39:10 tgl Exp $
9+
*$Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.116 2000/05/25 22:43:12 tgl Exp $
1010
*
1111
* NOTES
1212
* Every (plan) node in POSTGRES has an associated "out" routine which
@@ -1255,7 +1255,7 @@ _outStream(StringInfo str, Stream *node)
12551255
staticvoid
12561256
_outAExpr(StringInfostr,A_Expr*node)
12571257
{
1258-
appendStringInfo(str,"EXPR ");
1258+
appendStringInfo(str," AEXPR ");
12591259
switch (node->oper)
12601260
{
12611261
caseAND:
@@ -1273,12 +1273,16 @@ _outAExpr(StringInfo str, A_Expr *node)
12731273
caseNOTNULL:
12741274
appendStringInfo(str,"NOTNULL ");
12751275
break;
1276-
default:
1276+
caseOP:
12771277
_outToken(str,node->opname);
12781278
appendStringInfo(str," ");
12791279
break;
1280+
default:
1281+
appendStringInfo(str,"?? ");
1282+
break;
12801283
}
12811284
_outNode(str,node->lexpr);
1285+
appendStringInfo(str," ");
12821286
_outNode(str,node->rexpr);
12831287
}
12841288

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp