Content-Length: 278607 | pFad | http://github.com/postgrespro/postgres/commit/6693c9a5ed3ac9c07160039742dde8aa67e96ecf
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f33044 commit 6693c9aCopy full SHA for 6693c9a
src/backend/foreign/foreign.c
@@ -363,8 +363,17 @@ deflist_to_tuplestore(ReturnSetInfo *rsinfo, List *options)
363
DefElem *def = lfirst(cell);
364
365
values[0] = CStringGetTextDatum(def->defname);
366
- values[1] = CStringGetTextDatum(((Value *) def->arg)->val.str);
367
- nulls[0] = nulls[1] = false;
+ nulls[0] = false;
+ if (def->arg)
368
+ {
369
+ values[1] = CStringGetTextDatum(((Value *) (def->arg))->val.str);
370
+ nulls[1] = false;
371
+ }
372
+ else
373
374
+ values[1] = (Datum) 0;
375
+ nulls[1] = true;
376
377
tuplestore_putvalues(tupstore, tupdesc, values, nulls);
378
}
379
Fetched URL: http://github.com/postgrespro/postgres/commit/6693c9a5ed3ac9c07160039742dde8aa67e96ecf
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments