Commit 509bfd6a authored by Tom Lane's avatar Tom Lane

Fix unintended change of output format for createlang/droplang -l. Missed

these uses of printQuery() in FETCH_COUNT patch a year ago :-(.  Per report
from Tomoaki Sato.
parent faa11796
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.25 2007/01/05 22:19:50 momjian Exp $ * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.26 2007/08/10 00:39:31 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -138,6 +138,8 @@ main(int argc, char *argv[]) ...@@ -138,6 +138,8 @@ main(int argc, char *argv[])
memset(&popt, 0, sizeof(popt)); memset(&popt, 0, sizeof(popt));
popt.topt.format = PRINT_ALIGNED; popt.topt.format = PRINT_ALIGNED;
popt.topt.border = 1; popt.topt.border = 1;
popt.topt.start_table = true;
popt.topt.stop_table = true;
popt.topt.encoding = PQclientEncoding(conn); popt.topt.encoding = PQclientEncoding(conn);
popt.title = _("Procedural Languages"); popt.title = _("Procedural Languages");
printQuery(result, &popt, stdout, NULL); printQuery(result, &popt, stdout, NULL);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.22 2007/01/05 22:19:50 momjian Exp $ * $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.23 2007/08/10 00:39:31 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -149,6 +149,8 @@ main(int argc, char *argv[]) ...@@ -149,6 +149,8 @@ main(int argc, char *argv[])
memset(&popt, 0, sizeof(popt)); memset(&popt, 0, sizeof(popt));
popt.topt.format = PRINT_ALIGNED; popt.topt.format = PRINT_ALIGNED;
popt.topt.border = 1; popt.topt.border = 1;
popt.topt.start_table = true;
popt.topt.stop_table = true;
popt.topt.encoding = PQclientEncoding(conn); popt.topt.encoding = PQclientEncoding(conn);
popt.title = _("Procedural Languages"); popt.title = _("Procedural Languages");
printQuery(result, &popt, stdout, NULL); printQuery(result, &popt, stdout, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment