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: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces

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

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>


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-2017 The PostgreSQL Global Development Group