mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Small code simplifications
strVal() can be used in a couple of places instead of coding the same thing by hand.
This commit is contained in:
@@ -544,7 +544,7 @@ deflist_to_tuplestore(ReturnSetInfo *rsinfo, List *options)
|
||||
nulls[0] = false;
|
||||
if (def->arg)
|
||||
{
|
||||
values[1] = CStringGetTextDatum(((Value *) (def->arg))->val.str);
|
||||
values[1] = CStringGetTextDatum(strVal(def->arg));
|
||||
nulls[1] = false;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user