Skip site navigation (1) Skip section navigation (2)

Problem with PQexecPrepared

From: David Stanaway <david(at)stanaway(dot)net>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Problem with PQexecPrepared
Date: 2004-06-09 21:44:12
Message-ID: 1086817452.10544.5.camel@dmxnocws13.dialmex.net (view raw or flat)
Thread:
Lists: pgsql-interfaces
Hi,

I am having a problem with a compiler warning using PQexecPrepared.
It is with the paramValues argument.

warning: passing arg 4 of `PQexecPrepared' from incompatible pointer
type

The type I am passing is a char** and it is expecting const char* const*

The parameters I am passing in a generated at runtime so I can supply a
const pointer. Am I missing something? Also, does someone have an
example using PQexecPrepared or PQexecParams using non-text params?

-- 
David Stanaway <david(at)stanaway(dot)net>

Responses

pgsql-interfaces by date

Next:From: Jeroen T. VermeulenDate: 2004-06-09 22:21:14
Subject: Re: Problem with PQexecPrepared
Previous:From: Tom LaneDate: 2004-06-09 14:53:41
Subject: Re: cleaning up in UDF's (user-defined functions)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group