mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Add missing piece of BitString support to node output functions. Expand
and remove IsA_Value macro.
This commit is contained in:
parent
d128852358
commit
19cba0cc1b
@ -5,7 +5,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.137 2001/01/08 00:31:43 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.138 2001/01/20 00:15:58 petere 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
|
||||||
@ -1477,7 +1477,7 @@ _outNode(StringInfo str, void *obj)
|
|||||||
}
|
}
|
||||||
appendStringInfoChar(str, ')');
|
appendStringInfoChar(str, ')');
|
||||||
}
|
}
|
||||||
else if (IsA_Value(obj))
|
else if (IsA(obj, Integer) || IsA(obj, Float) || IsA(obj, String) || IsA(obj, BitString))
|
||||||
{
|
{
|
||||||
/* nodeRead does not want to see { } around these! */
|
/* nodeRead does not want to see { } around these! */
|
||||||
_outValue(str, obj);
|
_outValue(str, obj);
|
||||||
|
@ -7,7 +7,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
|
||||||
*
|
*
|
||||||
* $Id: nodes.h,v 1.84 2000/11/24 20:16:40 petere Exp $
|
* $Id: nodes.h,v 1.85 2001/01/20 00:15:59 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -270,9 +270,6 @@ typedef struct Node
|
|||||||
(IsA(jp, Join) || IsA(jp, NestLoop) || \
|
(IsA(jp, Join) || IsA(jp, NestLoop) || \
|
||||||
IsA(jp, MergeJoin) || IsA(jp, HashJoin))
|
IsA(jp, MergeJoin) || IsA(jp, HashJoin))
|
||||||
|
|
||||||
#define IsA_Value(t) \
|
|
||||||
(IsA(t, Integer) || IsA(t, Float) || IsA(t, String))
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------
|
/* ----------------------------------------------------------------
|
||||||
* extern declarations follow
|
* extern declarations follow
|
||||||
* ----------------------------------------------------------------
|
* ----------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user