Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UgHaM-0001S6-HT for pgsql-interfaces@arkaria.postgresql.org; Sat, 25 May 2013 16:44:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UgHaL-0003LZ-OW for pgsql-interfaces@arkaria.postgresql.org; Sat, 25 May 2013 16:44:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UgHaJ-0003LR-U5 for pgsql-interfaces@postgresql.org; Sat, 25 May 2013 16:44:47 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UgHaB-00059o-8P for pgsql-interfaces@postgresql.org; Sat, 25 May 2013 16:44:47 +0000 Received: from feivel (p508A07CF.dip0.t-ipconnect.de [80.138.7.207]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mme@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id E31481B4224; Sat, 25 May 2013 18:44:37 +0200 (CEST) Received: by feivel (Postfix, from userid 1000) id 56BA59F12E; Sat, 25 May 2013 18:44:37 +0200 (CEST) Date: Sat, 25 May 2013 18:44:37 +0200 From: Michael Meskes To: Rene =?utf-8?B?R3LDvG4=?= Cc: pgsql-interfaces@postgresql.org Subject: Re: Postgresql 9.0.8 - ECPG - COPY FROM returning COUNT Message-ID: <20130525164437.GA7802@feivel.credativ.lan> Mail-Followup-To: Rene =?utf-8?B?R3LDvG4=?= , pgsql-interfaces@postgresql.org References: <5AD33821D1C0AD479A69349F17DA5F5548697F@exchange.mbs.internal> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5AD33821D1C0AD479A69349F17DA5F5548697F@exchange.mbs.internal> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org 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