mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Fix up some misusage of appendStringInfo() and friends
Change to appendStringInfoChar() or appendStringInfoString() where those can be used. Author: David Rowley <david.rowley@2ndquadrant.com> Reviewed-by: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
This commit is contained in:
@ -83,7 +83,7 @@ static void outChar(StringInfo str, char c);
|
||||
|
||||
/* Write a character-string (possibly NULL) field */
|
||||
#define WRITE_STRING_FIELD(fldname) \
|
||||
(appendStringInfo(str, " :" CppAsString(fldname) " "), \
|
||||
(appendStringInfoString(str, " :" CppAsString(fldname) " "), \
|
||||
outToken(str, node->fldname))
|
||||
|
||||
/* Write a parse location field (actually same as INT case) */
|
||||
@ -92,12 +92,12 @@ static void outChar(StringInfo str, char c);
|
||||
|
||||
/* Write a Node field */
|
||||
#define WRITE_NODE_FIELD(fldname) \
|
||||
(appendStringInfo(str, " :" CppAsString(fldname) " "), \
|
||||
(appendStringInfoString(str, " :" CppAsString(fldname) " "), \
|
||||
outNode(str, node->fldname))
|
||||
|
||||
/* Write a bitmapset field */
|
||||
#define WRITE_BITMAPSET_FIELD(fldname) \
|
||||
(appendStringInfo(str, " :" CppAsString(fldname) " "), \
|
||||
(appendStringInfoString(str, " :" CppAsString(fldname) " "), \
|
||||
outBitmapset(str, node->fldname))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user