From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matthias Apitz <guru@unixarea.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: ESQL/C no indicator variables ./. error -213
Date: Thu, 18 Jun 2020 11:21:02 -0400
Message-ID: <1550181.1592493662@sss.pgh.pa.us> (raw)
In-Reply-To: <1549533.1592492641@sss.pgh.pa.us>
References: <20200617170221.GA30377@sh4-5.1blu.de>
<1451504.1592415593@sss.pgh.pa.us>
<20200618071355.GA31656@sh4-5.1blu.de>
<1549533.1592492641@sss.pgh.pa.us>
I wrote:
> Hmm. Trying this here, I get
> ...
Oh, scratch that, I'd failed to duplicate the test case. (I had an
empty string, not NULL, as the value of the tstchar25 column.)
I concur with Laurenz's diagnosis that you need to use an indicator
variable if you want to retrieve a NULL.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, guru@unixarea.de
Subject: Re: ESQL/C no indicator variables ./. error -213
In-Reply-To: <1550181.1592493662@sss.pgh.pa.us>
References: <20200617170221.GA30377@sh4-5.1blu.de> <1451504.1592415593@sss.pgh.pa.us> <20200618071355.GA31656@sh4-5.1blu.de> <1549533.1592492641@sss.pgh.pa.us> <1550181.1592493662@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