agora inbox for pgsql-interfaces@postgresql.org  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Rene Grün <rene.gruen@cslab.de>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Postgresql 9.0.8 - ECPG - COPY FROM returning COUNT
Date: Sat, 25 May 2013 18:44:37 +0200
Message-ID: <20130525164437.GA7802@feivel.credativ.lan> (raw)
In-Reply-To: <5AD33821D1C0AD479A69349F17DA5F5548697F@exchange.mbs.internal>
References: <5AD33821D1C0AD479A69349F17DA5F5548697F@exchange.mbs.internal>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-interfaces>

On Fri, May 24, 2013 at 04:42:21PM +0200, Rene Grün wrote:
> In psql this is retuned as a text 'COPY XXX'
> 
> How can I get this in ECPG?

sqlca.sqlerrd[2] is supposed to carry the "number of rows processed after an
INSERT, UPDATE or DELETE statement". Should work in your case, too.

> Mit freundlichen Grüßen aus Krefeld,
> With best regards from Krefeld,

Best regards from Moenchengladbach. :)

Explanation for the non-locals, it's like 10 miles between the two cities.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL


-- 
Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces



view thread (3+ messages)  latest in thread

Message-ID: <20130525164437.GA7802@feivel.credativ.lan>
Permalink:  ../20130525164437.GA7802@feivel.credativ.lan/
Also on:    postgresql.org/message-id/20130525164437.GA7802@feivel.credativ.lan

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: meskes@postgresql.org, rene.gruen@cslab.de
  Subject: Re: Postgresql 9.0.8 - ECPG - COPY FROM returning COUNT
  In-Reply-To: <20130525164437.GA7802@feivel.credativ.lan>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox