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)
{
user='someotheruser' dbname='db' host='host' port='12345' (inet)
trying postgresql://host/db?u%7aer=someotheruser&port=12345
-WARNING: ignoring unrecognized URI query parameter: uzer
-dbname='db' host='host' port='12345' (inet)
+uri-regress: invalid URI query parameter "uzer"
+
trying postgresql://host:12345?user=uri-user
user='uri-user' host='host' port='12345' (inet)
host='/path/to/socket/dir' (local)
trying postgresql://host?uzer=
-WARNING: ignoring unrecognized URI query parameter: uzer
-host='host' (inet)
+uri-regress: invalid URI query parameter "uzer"
+
trying postgre://
uri-regress: missing "=" after "postgre://" in connection info string