diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2000-05-05 09:38:40 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2000-05-05 09:38:40 +0000 |
commit | 5e4d8be18bc0943c266fbc9771232e63978509c3 (patch) | |
tree | ca470e4d76988b85fc95d1c629df92c68b377454 /src | |
parent | 83220721882e96328bc1167fb7e07bd1d315eeeb (diff) | |
download | postgresql-5e4d8be18bc0943c266fbc9771232e63978509c3.tar.gz postgresql-5e4d8be18bc0943c266fbc9771232e63978509c3.zip |
psql: suppress warnings about too many arguments if the command is not valid in the first place
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/command.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 2e895a947cf..c9f0b63418a 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $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 $ */ #include "postgres.h" #include "command.h" @@ -778,7 +778,10 @@ exec_command(const char *cmd, /* eat the rest of the options string */ while ((val = scan_option(&string, OT_NORMAL, NULL))) - psql_error("\\%s: extra argument '%s' ignored\n", cmd, val); + { + if (status != CMD_UNKNOWN) + psql_error("\\%s: extra argument '%s' ignored\n", cmd, val); + } if (options_string && continue_parse) *continue_parse = options_string + (string - string_cpy); |