Re: Postgresql 9.0.8 - ECPG - COPY FROM returning COUNT

From: Rene Grün <rene(dot)gruen(at)cslab(dot)de>
To: "Michael Meskes" <meskes(at)postgresql(dot)org>
Cc: <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: Postgresql 9.0.8 - ECPG - COPY FROM returning COUNT
Date: 2013-05-27 07:13:00
Message-ID: 5AD33821D1C0AD479A69349F17DA5F55486992@exchange.mbs.internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

It's working.

Thanks a lot.

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

CS-Lab GmbH
i. A. René Grün

E-Mail: rgr(at)cslab(dot)de
Fon:    +49 2151 72949-0
Fax:    +49 2151 72949-9
---
CS-Lab GmbH (Creativ Software Labor GmbH)
Römerstr. 15
D-47809 Krefeld
Geschäftsführer: Dieter Schmitz
Registergericht Krefeld, HRB 12257, USt.-ID: DE 263 834 180

-----Ursprüngliche Nachricht-----
Von: Michael Meskes [mailto:meskes(at)postgresql(dot)org]
Gesendet: Samstag, 25. Mai 2013 18:45
An: Rene Grün
Cc: pgsql-interfaces(at)postgresql(dot)org
Betreff: [ Spamverdacht ]Re: [INTERFACES] Postgresql 9.0.8 - ECPG - COPY FROM returning COUNT

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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Laxman Damodar 2013-07-19 09:21:55 Issue in Postgre Driver Installation
Previous Message Michael Meskes 2013-05-25 16:44:37 Re: Postgresql 9.0.8 - ECPG - COPY FROM returning COUNT