Fix output of char node fields
Peter Eisentraut <peter_e@gmx.net>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/nodes/outfuncs.c | modified | +19 −1 |
| src/backend/nodes/readfuncs.c | modified | +2 −1 |