mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
When using libpq URI syntax, error out on invalid parameter names.
Dan Farina
This commit is contained in:
@ -4874,9 +4874,11 @@ conninfo_uri_parse_params(char *params,
|
||||
return false;
|
||||
}
|
||||
|
||||
fprintf(stderr,
|
||||
libpq_gettext("WARNING: ignoring unrecognized URI query parameter: %s\n"),
|
||||
keyword);
|
||||
printfPQExpBuffer(errorMessage,
|
||||
libpq_gettext(
|
||||
"invalid URI query parameter \"%s\"\n"),
|
||||
keyword);
|
||||
return false;
|
||||
}
|
||||
if (malloced)
|
||||
{
|
||||
|
Reference in New Issue
Block a user