PQclear(pgres);
return qres;
}
-
- if (PQresultStatus(pgres) == PGRES_TUPLES_OK)
- {
- qres->ntuples = PQntuples(pgres);
- }
qres=CC_mapping(self,pgres,qres);
QR_set_command(qres, query);
rv->dl_alloc = 0;
rv->dl_count = 0;
rv->deleted = NULL;
-#ifdef USE_LIBPQ
- rv->ntuples = 0;
-#endif
}
mylog("exit QR_Constructor\n");
#ifdef USE_LIBPQ
ExecStatusType status;
- int ntuples;
#else
QueryResultCode status;
#endif /* USE_LIBPQ*/
}
if (res->recent_processed_row_count >= 0)
{
-#ifdef USE_LIBPQ
- if (res->recent_processed_row_count == 0 && res->ntuples > 0)
- {
- *pcrow = res->ntuples;
- return SQL_SUCCESS;
- }
-#endif
*pcrow = res->recent_processed_row_count;
mylog("**** PGAPI_RowCount(): THE ROWS: *pcrow = %d\n", *pcrow);