mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
psql: save/restore truePrint/falsePrint printQueryOpt values
Reported-by: a.kozhemyakin Author: David G. Johnston Discussion: https://postgr.es/m/83e247ed-0b2d-4aba-bc42-e7bbc20be0d6@postgrespro.ru
This commit is contained in:
@@ -5680,6 +5680,10 @@ savePsetInfo(const printQueryOpt *popt)
|
||||
save->topt.tableAttr = pg_strdup(popt->topt.tableAttr);
|
||||
if (popt->nullPrint)
|
||||
save->nullPrint = pg_strdup(popt->nullPrint);
|
||||
if (popt->truePrint)
|
||||
save->truePrint = pg_strdup(popt->truePrint);
|
||||
if (popt->falsePrint)
|
||||
save->falsePrint = pg_strdup(popt->falsePrint);
|
||||
if (popt->title)
|
||||
save->title = pg_strdup(popt->title);
|
||||
|
||||
@@ -5707,6 +5711,8 @@ restorePsetInfo(printQueryOpt *popt, printQueryOpt *save)
|
||||
free(popt->topt.recordSep.separator);
|
||||
free(popt->topt.tableAttr);
|
||||
free(popt->nullPrint);
|
||||
free(popt->truePrint);
|
||||
free(popt->falsePrint);
|
||||
free(popt->title);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user