Fix output of char node fields

Peter Eisentraut <peter_e@gmx.net>

Commit: d80e73f2293429cf8a0a13c243852379ec2e37e2
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-07-05T14:51:54Z
Releases: 10.0
Fix output of char node fields

WRITE_CHAR_FIELD() didn't do any escaping, so that for example a zero
byte would cause the whole output string to be truncated.  To fix, pass
the char through outToken(), so it is escaped like a string.  Adjust the
reading side to handle this.

Files

PathChange+/−
src/backend/nodes/outfuncs.c modified +19 −1
src/backend/nodes/readfuncs.c modified +2 −1