search for: pqgetvalue

Displaying 7 results from an estimated 7 matches for "pqgetvalue".

Did you mean: getvalue
2004 Jun 23
0
UPDATE Patch for postgres enabled app_voicemail.c
...ot;,PQntuples(PGSQLres), numFields); ! for (k = 0; k< (PQntuples(PGSQLres)); k++) { ! for (i=0; i<numFields; i++) { ! fname = PQfname(PGSQLres,i); ! if (!strcmp(fname, "password") && !PQgetisnull (PGSQLres,k,i)) { ! memset (password, 0, sizeof (password)); ! strcpy (password,PQgetvalue(PGSQLres,k,i)); ! } else if (!strcmp(fname, "context")) { ! memset (context, 0, sizeof (context)); ! strcpy (context,PQgetvalue(PGSQLres,k,i)); ! } else if (!strcmp(fname, "mailbox")) { ! memset (mailbox, 0, sizeof (mailbox)); ! strcpy (mailbox,PQgetvalue(PGSQLres,k,i)); ! } els...
2004 Jun 23
0
Patch for postgres enabled app_voicemail.c
...ot;,PQntuples(PGSQLres), numFields); ! for (k = 0; k< (PQntuples(PGSQLres)); k++) { ! for (i=0; i<numFields; i++) { ! fname = PQfname(PGSQLres,i); ! if (!strcmp(fname, "password") && !PQgetisnull (PGSQLres,k,i)) { ! memset (password, 0, sizeof (password)); ! strcpy (password,PQgetvalue(PGSQLres,k,i)); ! } else if (!strcmp(fname, "context")) { ! memset (context, 0, sizeof (context)); ! strcpy (context,PQgetvalue(PGSQLres,k,i)); ! } else if (!strcmp(fname, "mailbox")) { ! memset (mailbox, 0, sizeof (mailbox)); ! strcpy (mailbox,PQgetvalue(PGSQLres,k,i)); ! } els...
2005 Sep 12
1
compile error with postgres and voicemail
...asterisk terminates with the following compile error after make: [...] app_voicemail.c:460: warning: assignment makes pointer from integer without a cast app_voicemail.c:461: warning: implicit declaration of function `PQgetisnull' app_voicemail.c:462: warning: implicit declaration of function `PQgetvalue' app_voicemail.c:462: warning: passing arg 2 of `__builtin_strncpy' makes pointer from integer without a cast app_voicemail.c:464: warning: passing arg 2 of `__builtin_strncpy' makes pointer from integer without a cast app_voicemail.c:466: warning: passing arg 2 of `__builtin_strncpy...
2007 Mar 08
2
RE: Apache Install error on Centos 4.3
...: undefined reference to `PQsendQueryParams' /usr/lib/libaprutil-1.so: undefined reference to `PQexecParams' /usr/lib/libaprutil-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: un...
2009 Jun 04
2
RPostgreSQL segfault with LEFT JOIN
Hi, I recently upgraded to R 2.9.0 on linux x86. After doing so, I switched to the RPostgreSQL package for interfacing with a postgresql database. I am using postgresql 8.3.7. A query that works from the postgresql terminal is causing a segfault when executed from R. My sessionInfo, the error message, and the R code used to generate the error are listed below. I have noticed that a
2005 Mar 05
2
cant compile app_meetme2
...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: warning: passing arg 1 of `atoi' makes pointer from integer w ithout a cast app_meetme2.c:180: warning: passing arg 1 of `atoi' makes pointer from integer w ithout a cast app_meetme2.c:181: warning: passing arg 1 of `atoi' makes pointer from integer w ithout a...
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...; %d", + __func__, result, fname, i)); + return i; +} + +static char const *multi_pgsql_result_get_field_value(struct sql_result *r, + unsigned i) +{ + struct multi_pgsql_result *result; + char const *value; + unsigned row; + + result = (void *)r; + row = result->row; + value = PQgetvalue(result->pgr, row, i); + if (!*value && PQgetisnull(result->pgr, row, i)) value = NULL; + + dprintf(("%s: %p: %u,%u: '%s'", + __func__, result, row, i, value ? value : "NULL")); + return value; +} + +static unsigned char const * +multi_pgsql_result_get_fie...