Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlc2a-0008Ud-KJ for pgsql-general@arkaria.postgresql.org; Wed, 17 Jun 2020 17:40:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jlc2Z-0006VB-8K for pgsql-general@arkaria.postgresql.org; Wed, 17 Jun 2020 17:39:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlc2Z-0006V4-0F for pgsql-general@lists.postgresql.org; Wed, 17 Jun 2020 17:39:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlc2W-0004d1-3h for pgsql-general@lists.postgresql.org; Wed, 17 Jun 2020 17:39:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 05HHdrcX1451505; Wed, 17 Jun 2020 13:39:54 -0400 From: Tom Lane To: Matthias Apitz cc: pgsql-general@lists.postgresql.org Subject: Re: ESQL/C no indicator variables ./. error -213 In-reply-to: <20200617170221.GA30377@sh4-5.1blu.de> References: <20200617170221.GA30377@sh4-5.1blu.de> Comments: In-reply-to Matthias Apitz message dated "Wed, 17 Jun 2020 19:02:21 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1451503.1592415593.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 17 Jun 2020 13:39:53 -0400 Message-ID: <1451504.1592415593@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Matthias Apitz 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