Skip to content

Commit 92286bd

Browse files
committed
Clean up sloppy coding of _outAExpr().
1 parent ff566b2 commit 92286bd

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
static void
12561256
_outAExpr(StringInfo str, A_Expr *node)
12571257
{
1258-
appendStringInfo(str, "EXPR ");
1258+
appendStringInfo(str, " AEXPR ");
12591259
switch (node->oper)
12601260
{
12611261
case AND:
@@ -1273,12 +1273,16 @@ _outAExpr(StringInfo str, A_Expr *node)
12731273
case NOTNULL:
12741274
appendStringInfo(str, "NOTNULL ");
12751275
break;
1276-
default:
1276+
case OP:
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)
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