1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-16 16:42:29 +03:00

Fixed nodeToString() to put out "<>" for NULL strings again.

More cleanups to appendStringInfo() usage in node/outfuncs.c.

Jan
This commit is contained in:
Jan Wieck
1998-12-18 14:45:09 +00:00
parent 3498d878cb
commit eeff2c94be
3 changed files with 66 additions and 78 deletions

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: stringinfo.h,v 1.8 1998/12/14 08:11:17 scrappy Exp $
* $Id: stringinfo.h,v 1.9 1998/12/18 14:45:09 wieck Exp $
*
*-------------------------------------------------------------------------
*/
@@ -44,4 +44,10 @@ extern StringInfo makeStringInfo(void);
*/
extern void appendStringInfo(StringInfo str, const char *fmt,...);
/*------------------------
* nullStringInfo
* return the string itself or "<>" if it is NULL
*/
#define stringStringInfo(s) (((s) == NULL) ? "<>" : (s))
#endif /* STRINGINFO_H */