search for: pgres_tuples_ok

Displaying 5 results from an estimated 5 matches for "pgres_tuples_ok".

2003 May 27
1
Postgres "issue"
Dear list, I have a small issue with dovecot talking to a postgresql server: If my postgres server get restarted, dovecot fails to reconnect to the postgres server. I run dovecot 0.99.9.1 (which is actually a cvs version of dovecot, of may 9 2003) I have the same postgres version for the server as I use for the libraries. Is it hard to get auto-reconnect to work? Kind regards, Maikel
2004 Oct 05
1
Cannot compile Meetme2
...st use in this function) app_meetme2.c:140: error: `PGresult' undeclared (first use in this function) app_meetme2.c:140: error: `res' undeclared (first use in this function) app_meetme2.c:153: error: `CONNECTION_BAD' undeclared (first use in this function) app_meetme2.c:164: error: `PGRES_TUPLES_OK' undeclared (first use in this function) app_meetme2.c:180: warning: passing arg 1 of `atoi' makes pointer from integer without a cast app_meetme2.c:181: warning: passing arg 1 of `atoi' makes pointer from integer without a cast app_meetme2.c:182: warning: passing arg 1 of `atoi'...
2004 Jun 08
1
Meetme2
...tme2.c:144: `MYSQL_ROW' undeclared (first use in this function) app_meetme2.c:144: parse error before "row" app_meetme2.c:145: `my_ulonglong' undeclared (first use in this function) app_meetme2.c:153: `CONNECTION_BAD' undeclared (first use in this function) app_meetme2.c:164: `PGRES_TUPLES_OK' undeclared (first use in this function) app_meetme2.c:180: warning: passing arg 1 of `atoi' makes pointer from integer without a cast app_meetme2.c:181: warning: passing arg 1 of `atoi' makes pointer from integer without a cast app_meetme2.c:182: warning: passing arg 1 of `atoi' ma...
2005 Mar 05
2
cant compile app_meetme2
...format argument is not a pointer (arg 6) app_meetme2.c:155: warning: implicit declaration of function `PQfinish' app_meetme2.c:162: warning: implicit declaration of function `PQexec' app_meetme2.c:163: warning: implicit declaration of function `PQresultStatus' app_meetme2.c:163: error: `PGRES_TUPLES_OK' undeclared (first use in this functi on) app_meetme2.c:166: warning: implicit declaration of function `PQclear' app_meetme2.c:171: warning: implicit declaration of function `PQntuples' app_meetme2.c:179: warning: implicit declaration of function `PQgetvalue' app_meetme2.c:179: war...
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...= (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 = multi_pgsql_result_next_row; + return n_rows; +} + +static unsigned multi_pgsql_result_get_fie...