]> granicus.if.org Git - postgresql/commit
libpq: have PQconnectdbParams() and PQpingParams accept "" as default
authorBruce Momjian <bruce@momjian.us>
Sat, 19 Apr 2014 12:41:51 +0000 (08:41 -0400)
committerBruce Momjian <bruce@momjian.us>
Sat, 19 Apr 2014 12:41:51 +0000 (08:41 -0400)
commit13ecb822e8da5668133b706474c25bc908ae370a
treebf80faa006fbf9b60cbdb245bcecd9c9a464f099
parent66b1084e2ccf1f5b8cb57ebb41f54f76850a2b5d
libpq:  have PQconnectdbParams() and PQpingParams accept "" as default

Previously, these functions treated "" optin values as defaults in some
ways, but not in others, like when comparing to .pgpass.  Also, add
documentation to clarify that now "" and NULL use defaults, like
PQsetdbLogin() has always done.

BACKWARD INCOMPATIBILITY

Patch by Adrian Vondendriesch, docs by me

Report by Jeff Janes
doc/src/sgml/libpq.sgml
src/interfaces/libpq/fe-connect.c