trim(cmdbuffer); /* get rid of trailing space */
ptr = strrchr(cmdbuffer, ' ');
if (ptr)
- qres->recent_processed_row_count = atoi(ptr + 1);
+#ifdef USE_LIBPQ\r
+ qres->recent_processed_row_count = atoi(PQcmdTuples(pgres));\r
+#else\r
+ qres->recent_processed_row_count = atoi(ptr + 1);\r
+#endif /* USE_LIBPQ */
else
qres->recent_processed_row_count = -1;
}
SC_log_error(func, "", NULL);
return SQL_INVALID_HANDLE;
}
- ci = &(SC_get_conn(stmt)->connInfo);
+ ci = &(SC_get_conn(stmt)->connInfo);\r
+#ifndef USE_LIBPQ
if (stmt->manual_result)
{
if (pcrow)
*pcrow = -1;
return SQL_SUCCESS;
}
-
+#endif /* USE_LIBPQ */
res = SC_get_Curres(stmt);
if (res && pcrow)
{