pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Wed, 17 Jun 2020 13:39:53 -0400
Message-ID: <1451504.1592415593@sss.pgh.pa.us> (raw)
In-Reply-To: <20200617170221.GA30377@sh4-5.1blu.de>
References: <20200617170221.GA30377@sh4-5.1blu.de>

Matthias Apitz <guru@unixarea.de> writes:
> We encountered that if our ESQL/C written servers see on SELECT or FETCH
> in a row a NULL value, it will raise correctly the error -213 as written
> and explained in https://www.postgresql.org/docs/11/ecpg-variables.html#ECPG-INDICATORS
> We catch this error -213 and deal with in.

> What we did not knew and discovered today is something very fatal: In
> such a situation on a FETCH of a row of some 55 columns, the transfer of
> the column elements into their hostvariables stops on first NULL value,
> as here to be seen in the log:

Could you provide a self-contained test case for this?  It's hard to
guess at what the problem might be.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <1451504.1592415593@sss.pgh.pa.us>
Permalink:  ../1451504.1592415593@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1451504.1592415593@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 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: <1451504.1592415593@sss.pgh.pa.us>
  References: <20200617170221.GA30377@sh4-5.1blu.de> <1451504.1592415593@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