mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
Repair unforgivably brain-dead representation of CaseExpr nodes in
stored rules. Bump catversion to reflect incompatibility.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.118 2000/06/14 18:17:32 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.119 2000/06/16 05:27:02 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every (plan) node in POSTGRES has an associated "out" routine which
|
||||
@ -1385,10 +1385,14 @@ _outConstraint(StringInfo str, Constraint *node)
|
||||
static void
|
||||
_outCaseExpr(StringInfo str, CaseExpr *node)
|
||||
{
|
||||
appendStringInfo(str, "CASE ");
|
||||
appendStringInfo(str, " CASE :casetype %u :arg ",
|
||||
node->casetype);
|
||||
_outNode(str, node->arg);
|
||||
|
||||
appendStringInfo(str, " :args ");
|
||||
_outNode(str, node->args);
|
||||
|
||||
appendStringInfo(str, " :default ");
|
||||
appendStringInfo(str, " :defresult ");
|
||||
_outNode(str, node->defresult);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user