Re: PQexecPrepared Problem with paramValues - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: PQexecPrepared Problem with paramValues
Date
Msg-id 10050.1143693616@sss.pgh.pa.us
Whole thread Raw
In response to PQexecPrepared Problem with paramValues  (Keary Suska <hierophant@pcisys.net>)
List pgsql-interfaces
Keary Suska <hierophant@pcisys.net> writes:
> I am assuming that this format is OK since the documentation doesn't
> indicate that a proper two-dimensional array is required.

No, what is needed is a one-D array of pointers to char[] strings.
There isn't any use in concatenating those strings into one array,
if you have them available as separate null-terminated strings.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: Keary Suska
Date:
Subject: PQexecPrepared Problem with paramValues
Next
From: "Alistair Bayley"
Date:
Subject: Example libpq program fails when built with mingw ld-2.15.91 on WinXP (but not ld-2.13.90)