]> granicus.if.org Git - postgresql/commit
Fixes:
authorMarc G. Fournier <scrappy@hub.org>
Mon, 19 Aug 1996 13:25:40 +0000 (13:25 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Mon, 19 Aug 1996 13:25:40 +0000 (13:25 +0000)
commit77e01653bc5d43614ffb835b1cafc5387c28fc60
tree6d711bcea665ffaab42a3a75778b548af0bd4faf
parent3c47cdeb5a569fb8a4240e9008dd68f24cbc9213
Fixes:

When you connect to a database with PQsetdb, as with psql, depending on
how your uninitialized variables are set, you can get a failure with a
"There is no connection to the backend" message.

The fix is to move a call to PQexec() from inside connectDB() to
PQsetdb() after connectDB() returns to PQsetdb().  That way a connection
doesn't have to be already established in order to establish it!

From:  bryanh@giraffe.netgate.net (Bryan Henderson)
src/interfaces/libpq/fe-connect.c