mirror of https://github.com/postgres/postgres
When reporting connection errors, we might show a database name in the message that's not the one we actually tried to connect to, if the database was taken from libpq defaults instead of from user parameters. Fix such error messages to use PQdb(), which reports the correct name. (But, per commitpull/71/head2930c05634, make sure not to try to print NULL.) Apply to branches 9.5 through 13. Branch master has already been changed differently by commit58cd8dca3d. Reported-by: Robert Haas <robertmhaas@gmail.com> Discussion: https://postgr.es/m/CA+TgmobssJ6rS22dspWnu-oDxXevGmhMD8VcRBjmj-b9UDqRjw@mail.gmail.com
parent
64bdb6e5f8
commit
f17e8f33f7
Loading…
Reference in new issue