We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8322072 commit 5e4d8beCopy full SHA for 5e4d8be
src/bin/psql/command.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright 2000 by PostgreSQL Global Development Group
5
6
- * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.31 2000/04/16 20:04:50 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.32 2000/05/05 09:38:40 petere Exp $
7
*/
8
#include "postgres.h"
9
#include "command.h"
@@ -778,7 +778,10 @@ exec_command(const char *cmd,
778
779
/* eat the rest of the options string */
780
while ((val = scan_option(&string, OT_NORMAL, NULL)))
781
- psql_error("\\%s: extra argument '%s' ignored\n", cmd, val);
+ {
782
+ if (status != CMD_UNKNOWN)
783
+ psql_error("\\%s: extra argument '%s' ignored\n", cmd, val);
784
+ }
785
786
if (options_string && continue_parse)
787
*continue_parse = options_string + (string - string_cpy);
0 commit comments