forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd80e73f
committed
Fix output of char node fields
WRITE_CHAR_FIELD() didn't do any escaping, so that for example a zerobyte would cause the whole output string to be truncated. To fix, passthe char through outToken(), so it is escaped like a string. Adjust thereading side to handle this.1 parent5191e35 commitd80e73f
2 files changed
+21
-2
lines changedLines changed: 19 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| 35 | + | |
| 36 | + | |
35 | 37 |
| |
36 | 38 |
| |
37 | 39 |
| |
| |||
62 | 64 |
| |
63 | 65 |
| |
64 | 66 |
| |
65 |
| - | |
| 67 | + | |
| 68 | + | |
66 | 69 |
| |
67 | 70 |
| |
68 | 71 |
| |
| |||
140 | 143 |
| |
141 | 144 |
| |
142 | 145 |
| |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
143 | 161 |
| |
144 | 162 |
| |
145 | 163 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 |
| - | |
| 89 | + | |
| 90 | + | |
90 | 91 |
| |
91 | 92 |
| |
92 | 93 |
| |
|
0 commit comments
Comments
(0)