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

Commit19cba0c

Browse files
committed
Add missing piece of BitString support to node output functions. Expand
and remove IsA_Value macro.
1 parentd128852 commit19cba0c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

‎src/backend/nodes/outfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
*$Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.137 2001/01/08 00:31:43 tgl Exp $
8+
*$Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.138 2001/01/20 00:15:58 petere Exp $
99
*
1010
* NOTES
1111
* Every (plan) node in POSTGRES has an associated "out" routine which
@@ -1477,7 +1477,7 @@ _outNode(StringInfo str, void *obj)
14771477
}
14781478
appendStringInfoChar(str,')');
14791479
}
1480-
elseif (IsA_Value(obj))
1480+
elseif (IsA(obj,Integer)||IsA(obj,Float)||IsA(obj,String)||IsA(obj,BitString))
14811481
{
14821482
/* nodeRead does not want to see { } around these! */
14831483
_outValue(str,obj);

‎src/include/nodes/nodes.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: nodes.h,v 1.84 2000/11/24 20:16:40 petere Exp $
10+
* $Id: nodes.h,v 1.85 2001/01/20 00:15:59 petere Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -270,9 +270,6 @@ typedef struct Node
270270
(IsA(jp, Join) || IsA(jp, NestLoop) || \
271271
IsA(jp, MergeJoin) || IsA(jp, HashJoin))
272272

273-
#defineIsA_Value(t) \
274-
(IsA(t, Integer) || IsA(t, Float) || IsA(t, String))
275-
276273
/* ----------------------------------------------------------------
277274
* extern declarations follow
278275
* ----------------------------------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp