mirror of
https://github.com/postgres/postgres.git
synced 2026-04-09 11:06:21 -04:00
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) |
||
|---|---|---|
| .. | ||
| libpgtcl | ||
| libpq | ||
| libpq++ | ||