Displaying 4 results from an estimated 4 matches for "pqnfields".
2004 Jun 23
0
UPDATE Patch for postgres enabled app_voicemail.c
...PGRES_NONFATAL_ERROR ||
! PQresultStatus(PGSQLres) == PGRES_FATAL_ERROR) {
!
! ast_log(LOG_WARNING,"PGSQL_query: Query Error (%s) Calling
PQreset\n",PQcmdStatus(PGSQLres));
! PQclear(PGSQLres);
! PQreset(dbhandler);
! ast_mutex_unlock(&postgreslock);
! return;
! } else {
! numFields = PQnfields(PGSQLres);
! //fprintf(stdout,"postgres sql_append_user: query found %d rows with %d
fields\n",PQntuples(PGSQLres), numFields);
! for (k = 0; k< (PQntuples(PGSQLres)); k++) {
! for (i=0; i<numFields; i++) {
! fname = PQfname(PGSQLres,i);
! if (!strcmp(fname, "password") &a...
2004 Jun 23
0
Patch for postgres enabled app_voicemail.c
...PGRES_NONFATAL_ERROR ||
! PQresultStatus(PGSQLres) == PGRES_FATAL_ERROR) {
!
! ast_log(LOG_WARNING,"PGSQL_query: Query Error (%s) Calling
PQreset\n",PQcmdStatus(PGSQLres));
! PQclear(PGSQLres);
! PQreset(dbhandler);
! ast_mutex_unlock(&postgreslock);
! return;
! } else {
! numFields = PQnfields(PGSQLres);
! //fprintf(stdout,"postgres sql_append_user: query found %d rows with %d
fields\n",PQntuples(PGSQLres), numFields);
! for (k = 0; k< (PQntuples(PGSQLres)); k++) {
! for (i=0; i<numFields; i++) {
! fname = PQfname(PGSQLres,i);
! if (!strcmp(fname, "password") &a...
2007 Mar 08
2
RE: Apache Install error on Centos 4.3
...prutil-1.so: undefined reference to `PQclear'
/usr/lib/libaprutil-1.so: undefined reference to `PQresultStatus'
/usr/lib/libaprutil-1.so: undefined reference to `PQgetvalue'
/usr/lib/libaprutil-1.so: undefined reference to `PQstatus'
/usr/lib/libaprutil-1.so: undefined reference to `PQnfields'
/usr/lib/libaprutil-1.so: undefined reference to `PQcmdTuples'
/usr/lib/libaprutil-1.so: undefined reference to `PQescapeString'
/usr/lib/libaprutil-1.so: undefined reference to `PQsendQueryPrepared'
/usr/lib/libaprutil-1.so: undefined reference to `PQfinish'
/usr/lib/libapruti...
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...:
+ 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_fields_count(struct sql_result *r)
+{
+ struct multi_pgsql_result *result;
+ unsigned count;
+
+ result = (void *)r;
+ count = PQnfields(result->pgr);
+
+ dprintf(("%s: %p: %u", __func__, result, count));
+ return count;
+}
+
+static char const *multi_pgsql_result_get_field_name(struct sql_result *r,
+ unsigned i)
+{
+ struct multi_pgsql_result *result;
+ char const *name;
+
+ result = (void *)r;
+ name = PQf...