Fix unintended change of output format for createlang/droplang -l. Missed
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Aug 2007 00:39:44 +0000 (00:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Aug 2007 00:39:44 +0000 (00:39 +0000)
these uses of printQuery() in FETCH_COUNT patch a year ago :-(.  Per report
from Tomoaki Sato.

src/bin/scripts/createlang.c
src/bin/scripts/droplang.c

index 7d29c399cb685c0910e894d6266f94c0b1b6ddc6..8252aba8108c46369a854458719a44b119af51d4 100644 (file)
@@ -138,6 +138,8 @@ main(int argc, char *argv[])
                memset(&popt, 0, sizeof(popt));
                popt.topt.format = PRINT_ALIGNED;
                popt.topt.border = 1;
+               popt.topt.start_table = true;
+               popt.topt.stop_table = true;
                popt.topt.encoding = PQclientEncoding(conn);
                popt.title = _("Procedural Languages");
                printQuery(result, &popt, stdout, NULL);
index 92c0fd02b6b6843b61cea6067441a9a7706ca33e..2e86c2b53ebd39bd0e885b29751b7814e72821ed 100644 (file)
@@ -149,6 +149,8 @@ main(int argc, char *argv[])
                memset(&popt, 0, sizeof(popt));
                popt.topt.format = PRINT_ALIGNED;
                popt.topt.border = 1;
+               popt.topt.start_table = true;
+               popt.topt.stop_table = true;
                popt.topt.encoding = PQclientEncoding(conn);
                popt.title = _("Procedural Languages");
                printQuery(result, &popt, stdout, NULL);