Thanks to visit codestin.com Credit goes to github.com
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 20723ce commit 7558c1cCopy full SHA for 7558c1c
src/bin/psql/startup.c
@@ -162,12 +162,9 @@ main(int argc, char *argv[])
162
}
163
164
/* Bail out if -1 was specified but will be ignored. */
165
- if (options.single_txn && options.action != ACT_FILE)
+ if (options.single_txn && options.action != ACT_FILE && options.action == ACT_NOTHING)
166
{
167
- if (options.action == ACT_NOTHING)
168
- fprintf(stderr, _("%s: -1 can only be used in non-interactive mode\n"), pset.progname);
169
- else
170
- fprintf(stderr, _("%s: -1 is incompatible with -c and -l\n"), pset.progname);
+ fprintf(stderr, _("%s: -1 can only be used in non-interactive mode\n"), pset.progname);
171
exit(EXIT_FAILURE);
172
173
0 commit comments