Commit 92286bd5 authored by Tom Lane's avatar Tom Lane

Clean up sloppy coding of _outAExpr().

parent ff566b22
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.115 2000/04/26 23:39:10 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.116 2000/05/25 22:43:12 tgl Exp $
* *
* NOTES * NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which * Every (plan) node in POSTGRES has an associated "out" routine which
...@@ -1255,7 +1255,7 @@ _outStream(StringInfo str, Stream *node) ...@@ -1255,7 +1255,7 @@ _outStream(StringInfo str, Stream *node)
static void static void
_outAExpr(StringInfo str, A_Expr *node) _outAExpr(StringInfo str, A_Expr *node)
{ {
appendStringInfo(str, "EXPR "); appendStringInfo(str, " AEXPR ");
switch (node->oper) switch (node->oper)
{ {
case AND: case AND:
...@@ -1273,12 +1273,16 @@ _outAExpr(StringInfo str, A_Expr *node) ...@@ -1273,12 +1273,16 @@ _outAExpr(StringInfo str, A_Expr *node)
case NOTNULL: case NOTNULL:
appendStringInfo(str, "NOTNULL "); appendStringInfo(str, "NOTNULL ");
break; break;
default: case OP:
_outToken(str, node->opname); _outToken(str, node->opname);
appendStringInfo(str, " "); appendStringInfo(str, " ");
break; break;
default:
appendStringInfo(str, "?? ");
break;
} }
_outNode(str, node->lexpr); _outNode(str, node->lexpr);
appendStringInfo(str, " ");
_outNode(str, node->rexpr); _outNode(str, node->rexpr);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment