Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvpD6-0007Y7-3C for pgsql-odbc@arkaria.postgresql.org; Thu, 17 Jan 2013 13:08:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TvpD5-0007HK-JA for pgsql-odbc@arkaria.postgresql.org; Thu, 17 Jan 2013 13:08:47 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvpD4-0007GC-CF for pgsql-odbc@postgresql.org; Thu, 17 Jan 2013 13:08:46 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TvpD2-0008VH-En for pgsql-odbc@postgresql.org; Thu, 17 Jan 2013 13:08:45 +0000 Received: (qmail 10843 invoked by uid 512); 17 Jan 2013 13:08:41 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 17 Jan 2013 13:08:41 -0000 Received: from unknown (HELO ?192.168.1.4?) (183.76.63.59) by sd.tpf.co.jp with SMTP; 17 Jan 2013 13:08:41 -0000 Message-ID: <50F7F7D4.40307@tpf.co.jp> Date: Thu, 17 Jan 2013 22:08:36 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: "j.letzel@t-online.de" CC: pgsql-odbc@postgresql.org Subject: Re: Bug in SQLRowCount ? References: <1TvloP-15Bhtg0@fwd04.aul.t-online.de> In-Reply-To: <1TvloP-15Bhtg0@fwd04.aul.t-online.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org (2013/01/17 18:31), j.letzel@t-online.de wrote: > Hello ! > > I maintain a backend in a commercial context. The backend provides > access to MS SQLServer (via ODBC) and Oracle (via OCI). Now I want to > make it ready for PostgreSQL via ODBC. > > For performance reasons we use bulk inserts/updates. > > This is done in this manner: > > SQLAllocStmt > > SQLPrepare // insert into kfztest.KP values (?,?,...,?) > > SQBindParameter // for each column > > ... > > SQLSetStmtAttr // SQL_ATTR_PARAMSET_SIZE to 523 > > SQLSetStmtAttr // SQL_ATTR_PARAM_STATUS_PTR to an array of SQLSMALLINT > > SQLSetStmtAttr // SQL_ATTR_PARAMS_PROCESSED_PTR to an SQLULEN variable > > SQLExecute // ends with SQL_SUCCESS > > SQLRowCount // delivers 1 !!!! The driver gives individual row counts for each parameter set. SQLGetInfo(.., SQL_PARAM_ARRAY_ROW_COUNTS) returns SQL_PARC_BATCH. regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc