summaryrefslogtreecommitdiff
path: root/src/bin/psql/print.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2009-05-27 20:47:55 +0000
committerPeter Eisentraut <peter_e@gmx.net>2009-05-27 20:47:55 +0000
commit84f2f5c023eec98165825cb0dc4be5f88afb530b (patch)
treeb0cd1e1d520b095184611a8caaceacfc1102a4e2 /src/bin/psql/print.c
parent6ec0753146c5ca69a9f1b9eee229c8fa7a55b2b0 (diff)
Fix to use the same format specifiers in both branches of a ngettext().
Zdenek Kotala
Diffstat (limited to 'src/bin/psql/print.c')
-rw-r--r--src/bin/psql/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c
index ab6a04ea1e3..fd869c65524 100644
--- a/src/bin/psql/print.c
+++ b/src/bin/psql/print.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.112 2009/04/11 14:11:45 petere Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.113 2009/05/27 20:47:55 petere Exp $
*/
#include "postgres_fe.h"
@@ -2348,7 +2348,7 @@ printQuery(const PGresult *result, const printQueryOpt *opt, FILE *fout, FILE *f
char default_footer[100];
total_records = opt->topt.prior_records + cont.nrows;
- snprintf(default_footer, 100, ngettext("(1 row)", "(%lu rows)", total_records), total_records);
+ snprintf(default_footer, 100, ngettext("(%lu row)", "(%lu rows)", total_records), total_records);
printTableAddFooter(&cont, default_footer);
}