From: Daniel Verite <daniel@manitou-mail.org>
To: pgsql-interfaces@postgresql.org
Subject: Re: libpq, PQExecParams and the inserting of binary data
Date: Sat, 04 Jun 2005 15:36:20 +0200
Message-ID: <20050604153734.8397528@uruguay> (raw)
In-Reply-To: <7104a73705060401222c6cc5d2@mail.gmail.com>
Volkan YAZICI wrote:
> res = PQexecParams(conn, command, nParams, paramTypes, paramValues,
> paramLengths, paramFormats, resultFormat);
[...]
> Above code is working well for me. But while trying some other
> combinations (out of NULL usage) for PQexecParams parameters, I
> realized that when we use "const int paramFormats[] = {1};" execution
> dumps SegFault:
Are you passing a NULL pointer in paramLengths? You need to
pass an array containing the actual length of your binary data.
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org
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: daniel@manitou-mail.org
Subject: Re: libpq, PQExecParams and the inserting of binary data
In-Reply-To: <20050604153734.8397528@uruguay>
* 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