pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Keary Suska <hierophant@pcisys.net>
Cc: Postgres-Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: PQexecPrepared Problem with paramValues
Date: Wed, 29 Mar 2006 23:40:16 -0500
Message-ID: <10050.1143693616@sss.pgh.pa.us> (raw)
In-Reply-To: <C050AA95.27A69%hierophant@pcisys.net>
References: <C050AA95.27A69%hierophant@pcisys.net>

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



view thread (2+ messages)

Message-ID: <10050.1143693616@sss.pgh.pa.us>
Permalink:  ../10050.1143693616@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10050.1143693616@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hierophant@pcisys.net
  Subject: Re: PQexecPrepared Problem with paramValues
  In-Reply-To: <10050.1143693616@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox