Author: turnstep
Date: Thu Dec 17 06:45:23 2009
New Revision: 13667
Modified:
DBD-Pg/trunk/Changes
DBD-Pg/trunk/dbdimp.c
Log:
Better SQLSTATE code on connection failure (CPAN bug #52863)
Modified: DBD-Pg/trunk/Changes
==============================================================================
--- DBD-Pg/trunk/Changes (original)
+++ DBD-Pg/trunk/Changes Thu Dec 17 06:45:23 2009
@@ -1,6 +1,9 @@
('GSM' is Greg Sabino Mullane, greg-738XdyZ4GzZWk0Htik3J/[email protected])
+ - Better SQLSTATE code on connection failure (CPAN bug #52863)
+ [Chris Travers with help from Andrew Gierth]
+
- Fixed POD escapes (CPAN bug #51856) [[email protected]]
2.15.1 Released August 7, 2009
Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c (original)
+++ DBD-Pg/trunk/dbdimp.c Thu Dec 17 06:45:23 2009
@@ -185,8 +185,8 @@
connstatus = PQstatus(imp_dbh->conn);
if (CONNECTION_OK != connstatus) {
TRACE_PQERRORMESSAGE;
- pg_error(aTHX_ dbh, connstatus, PQerrorMessage(imp_dbh->conn));
strncpy(imp_dbh->sqlstate, "08006", 6); /* "CONNECTION FAILURE" */
+ pg_error(aTHX_ dbh, connstatus, PQerrorMessage(imp_dbh->conn));
TRACE_PQFINISH;
PQfinish(imp_dbh->conn);
sv_free((SV *)imp_dbh->savepoints);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.