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 1jlwLi-0002yu-Ns for pgsql-general@arkaria.postgresql.org; Thu, 18 Jun 2020 15:21:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jlwLh-0007XP-DQ for pgsql-general@arkaria.postgresql.org; Thu, 18 Jun 2020 15:21:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlwLh-0007XH-61 for pgsql-general@lists.postgresql.org; Thu, 18 Jun 2020 15:21:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlwLf-0000CT-4L for pgsql-general@lists.postgresql.org; Thu, 18 Jun 2020 15:21:04 +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 05IFL2v61550182; Thu, 18 Jun 2020 11:21:02 -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: <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> Comments: In-reply-to Tom Lane message dated "Thu, 18 Jun 2020 11:04:01 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1550180.1592493662.1@sss.pgh.pa.us> Date: Thu, 18 Jun 2020 11:21:02 -0400 Message-ID: <1550181.1592493662@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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