Skip to content
Snippets Groups Projects
Commit 5e4d8be1 authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

psql: suppress warnings about too many arguments if the command is not valid in the first place

parent 83220721
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright 2000 by PostgreSQL Global Development Group * 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 "postgres.h"
#include "command.h" #include "command.h"
...@@ -778,7 +778,10 @@ exec_command(const char *cmd, ...@@ -778,7 +778,10 @@ exec_command(const char *cmd,
/* eat the rest of the options string */ /* eat the rest of the options string */
while ((val = scan_option(&string, OT_NORMAL, NULL))) while ((val = scan_option(&string, OT_NORMAL, NULL)))
{
if (status != CMD_UNKNOWN)
psql_error("\\%s: extra argument '%s' ignored\n", cmd, val); psql_error("\\%s: extra argument '%s' ignored\n", cmd, val);
}
if (options_string && continue_parse) if (options_string && continue_parse)
*continue_parse = options_string + (string - string_cpy); *continue_parse = options_string + (string - string_cpy);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment