Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyZrr-0002JA-Hm for pgsql-interfaces@arkaria.postgresql.org; Sun, 01 Oct 2017 08:44:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dyZrq-0005Kz-V3 for pgsql-interfaces@arkaria.postgresql.org; Sun, 01 Oct 2017 08:44:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dyZrW-0004lk-HZ for pgsql-interfaces@postgresql.org; Sun, 01 Oct 2017 08:44:34 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dyZrO-0001gV-SA for pgsql-interfaces@postgresql.org; Sun, 01 Oct 2017 08:44:33 +0000 Received: from feivel.credativ.lan ([95.223.109.176]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MAdeV-1eAME03k2F-00Bq3M; Sun, 01 Oct 2017 10:44:23 +0200 Received: from localhost (localhost [127.0.0.1]) by feivel.credativ.lan (Postfix) with ESMTP id 28C9430D; Sun, 1 Oct 2017 10:44:23 +0200 (CEST) Message-ID: <1506847463.2588.50.camel@postgresql.org> Subject: Re: Inserting using SQL descriptors in ECPG in different versions of Linux From: Michael Meskes To: pgsql-interfaces@postgresql.org Cc: Anders Nilsson Date: Sun, 01 Oct 2017 10:44:23 +0200 In-Reply-To: References: Organization: PostgreSQL Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.0-1 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:4bOcaQIy1YB4IGg3RFohplfRT8ngz6p+E6oHA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post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org > The following code compiles and runs fine without error messages on > the Centos-6 box, but on the Centos-7 box, the execution of the > prepared query with descriptor returns successful but without > inserting any records and displaying the "No record actually > inserted" message. Set PGUSER/PGDATABASE accordingly to run. No idea why the same ecpg version behaves differently on these two boxes. I assume that not both have the same version installed by default, meaning you installed a non-default PostgreSQL yourself. Maybe there was something left from the distro provided version? > Any idea what I might be doing wrong? Yes. > // Insert record > exec sql execute sid1 using descriptor insert_desc; If my memory serves well, this should be "exec sql execute sid1 using sql descriptor insert_desc;" Without the SQL it tries to insert the sqlda which does not exist.=20 Michael --=20 Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Meskes at (Debian|Postgresql) dot Org Jabber: michael at xmpp dot meskes dot org VfL Borussia! For=C3=A7a Bar=C3=A7a! SF 49ers! Use Debian GNU/Linux, Postgr= eSQL --=20 Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces