pgsql: On second thought, use an empty string instead of "none" when no - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: On second thought, use an empty string instead of "none" when no
Date
Msg-id E1TvD3h-00005k-QI@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
On second thought, use an empty string instead of "none" when not connected.

"none" could mislead to think that you're connected a database with that
name. Also, it needs to be translated, which might be hard without some
context. So in back-branches, use empty string, so that the message is
(currently ""), which is at least unambiguous and doens't require
translation. In master, it's no problem to add translatable strings, so use
a different fix there.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/71c53d528568a2ee1e250d452dc5fde3f9e619b6

Modified Files
--------------
src/bin/psql/help.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Don't pass NULL to fprintf, if not currently connected to a data
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Make \? help message more clear when not connected.