Author: turnstep
Date: Sat Apr 12 09:23:34 2008
New Revision: 11068

Modified:
   DBD-Pg/trunk/dbdimp.c

Log:
No need to call PQntuples again, we already know the number of rows.


Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c       (original)
+++ DBD-Pg/trunk/dbdimp.c       Sat Apr 12 09:23:34 2008
@@ -3170,7 +3170,7 @@
        }
        
        TRACE_PQNTUPLES;
-       if (imp_sth->cur_tuple == PQntuples(imp_sth->result) ) {
+       if (imp_sth->cur_tuple == imp_sth->rows) {
                if (TRACE5)
                        TRC(DBILOGFP, "%sFetched the last tuple (%d)\n", 
THEADER, imp_sth->cur_tuple);
                imp_sth->cur_tuple = 0;

Reply via email to