- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit9ddf251
committed
Handle NULL fields in WRITE_INDEX_ARRAY
Unlike existing WRITE_*_ARRAY macros, WRITE_INDEX_ARRAY needs tohandle the case that the field is NULL. We already have theconvention to print NULL fields as "<>", so we do that here as well.There is currently no corresponding read function for this, so readingthis back in is not implemented, but it could be if needed.Reported-by: Richard Guo <guofenglinux@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://www.postgresql.org/message-id/flat/CAMbWs4-LN%3DbF8f9eU2R94dJtF54DfDvBq%2BovqHnOQqbinYDrUw%40mail.gmail.com1 parent06cafd6 commit9ddf251
1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
127 | 131 |
| |
128 | 132 |
| |
129 | 133 |
| |
130 |
| - | |
131 |
| - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
132 | 139 |
| |
133 | 140 |
| |
134 | 141 |
| |
|
0 commit comments
Comments
(0)