Author: turnstep
Date: Tue Apr 7 11:57:32 2009
New Revision: 12678
Modified:
DBD-Pg/trunk/dbdimp.c
Log:
Rather than use PQresultStatus(result) directly, use our _sqlstate wrapper, which grabs sqlstate. Patch by [email protected]
Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c (original)
+++ DBD-Pg/trunk/dbdimp.c Tue Apr 7 11:57:32 2009
@@ -2113,9 +2113,8 @@
TRACE_PQPREPARE;
result = PQprepare(imp_dbh->conn, imp_sth->prepare_name, statement, params, imp_sth->PQoids);
+ status = _sqlstate(aTHX_ imp_dbh, result);
if (result) {
- TRACE_PQRESULTSTATUS;
- status = PQresultStatus(result);
TRACE_PQCLEAR;
PQclear(result);
}
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.