File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -124,11 +124,18 @@ static void outChar(StringInfo str, char c);
124
124
appendStringInfo(str, " %u", node->fldname[i]); \
125
125
} while(0)
126
126
127
+ /*
128
+ * This macro supports the case that the field is NULL. For the other array
129
+ * macros, that is currently not needed.
130
+ */
127
131
#define WRITE_INDEX_ARRAY (fldname , len ) \
128
132
do { \
129
133
appendStringInfoString(str, " :" CppAsString(fldname) " "); \
130
- for (int i = 0; i < len; i++) \
131
- appendStringInfo(str, " %u", node->fldname[i]); \
134
+ if (node->fldname) \
135
+ for (int i = 0; i < len; i++) \
136
+ appendStringInfo(str, " %u", node->fldname[i]); \
137
+ else \
138
+ appendStringInfoString(str, "<>"); \
132
139
} while(0)
133
140
134
141
#define WRITE_INT_ARRAY (fldname , len ) \
You can’t perform that action at this time.
0 commit comments