8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0471b01 commit ee0ef98Copy full SHA for ee0ef98
src/bin/psql/help.c
@@ -161,6 +161,11 @@ void
161
slashUsage(unsigned short int pager)
162
{
163
FILE *output;
164
+ char *currdb;
165
+
166
+ currdb = PQdb(pset.db);
167
+ if (currdb == NULL)
168
+ currdb = _("none");
169
170
output = PageOutput(94, pager);
171
@@ -253,7 +258,7 @@ slashUsage(unsigned short int pager)
253
258
fprintf(output, _("Connection\n"));
254
259
fprintf(output, _(" \\c[onnect] [DBNAME|- USER|- HOST|- PORT|-]\n"
255
260
" connect to new database (currently \"%s\")\n"),
256
- PQdb(pset.db));
261
+ currdb);
257
262
fprintf(output, _(" \\encoding [ENCODING] show or set client encoding\n"));
263
fprintf(output, _(" \\password [USERNAME] securely change the password for a user\n"));
264
fprintf(output, _(" \\conninfo display information about current connection\n"));
0 commit comments