summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb1de94)
raw | patch | inline | side by side (parent: cb1de94)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 8 Mar 2012 20:53:24 +0000 (21:53 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 28 Jan 2013 21:08:21 +0000 (22:08 +0100) |
First of all, this is not needed -- PQstatus() will correctly determine a
failed connection without that. Secondly, the "SELECT 42" that was used before
does not work, e.g. when querying PgBouncer (thanks to renchap for reporting
this on IRC!).
failed connection without that. Secondly, the "SELECT 42" that was used before
does not work, e.g. when querying PgBouncer (thanks to renchap for reporting
this on IRC!).
src/postgresql.c | patch | blob | history |
diff --git a/src/postgresql.c b/src/postgresql.c
index 6c9ab44e8b3379aff58dd9b0b7a4295e6b74876c..e3a66743464e46b917fe8e25c760c650a0037e27 100644 (file)
--- a/src/postgresql.c
+++ b/src/postgresql.c
c_psql_connect (db);
}
- /* "ping" */
- PQclear (PQexec (db->conn, "SELECT 42;"));
-
if (CONNECTION_OK != PQstatus (db->conn)) {
PQreset (db->conn);