Displaying 4 results from an estimated 4 matches for "pgres_command_ok".
2004 Oct 05
1
Cannot compile Meetme2
...st use in this function)
app_meetme2.c:256: error: `PGresult' undeclared (first use in this function)
app_meetme2.c:256: error: `res' undeclared (first use in this function)
app_meetme2.c:269: error: `CONNECTION_BAD' undeclared (first use in this
function)
app_meetme2.c:278: error: `PGRES_COMMAND_OK' undeclared (first use in this
function)
app_meetme2.c:296: error: `PGRES_TUPLES_OK' undeclared (first use in this
function)
app_meetme2.c:303: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
app_meetme2.c:332: warning: passing arg 1 of `strlen' makes...
2004 Jun 08
1
Meetme2
...tme2.c:263: `MYSQL_ROW' undeclared (first use in this function)
app_meetme2.c:263: parse error before "row"
app_meetme2.c:264: `my_ulonglong' undeclared (first use in this function)
app_meetme2.c:269: `CONNECTION_BAD' undeclared (first use in this function)
app_meetme2.c:278: `PGRES_COMMAND_OK' undeclared (first use in this function)
app_meetme2.c:296: `PGRES_TUPLES_OK' undeclared (first use in this function)
app_meetme2.c:303: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
app_meetme2.c:332: warning: passing arg 1 of `strlen' makes pointer f...
2005 Mar 05
2
cant compile app_meetme2
...ndeclared (first use in this function)
app_meetme2.c:255: error: `res' undeclared (first use in this function)
app_meetme2.c:268: error: `CONNECTION_BAD' undeclared (first use in this
functio
n)
app_meetme2.c:270: warning: format argument is not a pointer (arg 6)
app_meetme2.c:277: error: `PGRES_COMMAND_OK' undeclared (first use in this
funct
ion)
app_meetme2.c:295: error: `PGRES_TUPLES_OK' undeclared (first use in this
functi
on)
app_meetme2.c:296: warning: format argument is not a pointer (arg 6)
app_meetme2.c:302: warning: passing arg 1 of `strlen' makes pointer from
integer
witho...
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...lti_pgsql_result *result;
+ PGresult *pgr;
+ ExecStatusType status;
+ unsigned n_rows;
+
+ result = (void *)r;
+ pgr = result->pgr;
+
+ status = PQresultStatus(pgr);
+ dprintf(("%s: %p: result status %s(%d)",
+ __func__, r, PQresStatus(status), status));
+
+ switch (status) {
+ case PGRES_COMMAND_OK:
+ case PGRES_COPY_OUT:
+ case PGRES_COPY_IN:
+ n_rows = 0;
+ break;
+
+ case PGRES_TUPLES_OK:
+ n_rows = PQntuples(pgr);
+
+ dprintf(("%s: %p: %u rows", __func__, result, n_rows));
+ break;
+
+ default:
+ return -1;
+ }
+
+ result->n_rows = n_rows;
+ result->api.v.next_row...