mirror of
https://github.com/postgres/postgres.git
synced 2026-05-26 03:11:44 -04: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:
parent
cac0f24eb5
commit
34be85f657
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue