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 0af83bd commit 63b0b39Copy full SHA for 63b0b39
src/bin/psql/help.c
@@ -159,6 +159,11 @@ void
159
slashUsage(unsigned short int pager)
160
{
161
FILE *output;
162
+ char *currdb;
163
+
164
+ currdb = PQdb(pset.db);
165
+ if (currdb == NULL)
166
+ currdb = _("none");
167
168
output = PageOutput(69, pager);
169
@@ -171,7 +176,7 @@ slashUsage(unsigned short int pager)
171
176
fprintf(output, _("General\n"));
172
177
fprintf(output, _(" \\c[onnect] [DBNAME|- USER|- HOST|- PORT|-]\n"
173
178
" connect to new database (currently \"%s\")\n"),
174
- PQdb(pset.db));
179
+ currdb);
175
180
fprintf(output, _(" \\cd [DIR] change the current working directory\n"));
181
fprintf(output, _(" \\copyright show PostgreSQL usage and distribution terms\n"));
182
fprintf(output, _(" \\encoding [ENCODING]\n"
0 commit comments