Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tvlp2-0002pN-8y for pgsql-odbc@arkaria.postgresql.org; Thu, 17 Jan 2013 09:31:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tvlp0-0004FT-Tt for pgsql-odbc@arkaria.postgresql.org; Thu, 17 Jan 2013 09:31:43 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tvloh-0003ye-BA for pgsql-odbc@postgresql.org; Thu, 17 Jan 2013 09:31:23 +0000 Received: from mailout03.t-online.de ([194.25.134.81]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tvloe-0000yq-Sm for pgsql-odbc@postgresql.org; Thu, 17 Jan 2013 09:31:22 +0000 Received: from fwd04.aul.t-online.de (fwd04.aul.t-online.de ) by mailout03.t-online.de with smtp id 1Tvlod-0004ho-V5; Thu, 17 Jan 2013 10:31:19 +0100 Received: from localhost (bdgkmcZDZh0b1N9Mjn2obDufCGoPDxRwnr8RkzUjpQVuM3kutu6RLPSycJDHAShwzr@[172.20.101.250]) by fwd04.aul.t-online.de with esmtp id 1TvloP-15Bhtg0; Thu, 17 Jan 2013 10:31:05 +0100 MIME-Version: 1.0 Received: from 212.87.42.226:51394 by cmpweb55.aul.t-online.de with HTTP/1.1 (NGCS V4-0-14-3 on API V3-11-19-0) Date: Thu, 17 Jan 2013 10:31:05 +0100 Reply-To: "j.letzel@t-online.de" To: pgsql-odbc@postgresql.org X-Priority: 3 X-UMS: email X-Mailer: DTAG NGCS V4-0-14-3 Subject: Bug in SQLRowCount ? From: "j.letzel@t-online.de" Content-Type: multipart/alternative; boundary="=_9abac0feb59afe27bf3c3cd7dd8aa425" Message-ID: <1TvloP-15Bhtg0@fwd04.aul.t-online.de> X-ID: bdgkmcZDZh0b1N9Mjn2obDufCGoPDxRwnr8RkzUjpQVuM3kutu6RLPSycJDHAShwzr@t-dialin.net X-TOI-MSGID: d07642ef-5f30-4f52-9faf-0dd8ecaefaaf 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 --=_9abac0feb59afe27bf3c3cd7dd8aa425 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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 !!!! SQLEndTrans // with COMMIT When necessary I can provide a full ODBC trace. All records were written into table. Thanks in advance. Regards Johann Letzel --=_9abac0feb59afe27bf3c3cd7dd8aa425 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

 

Hello !

 

I maintain a backend in a commercial context. The= backend provides access to MS SQLServer (via ODBC) and Oracle (via OCI). N= ow I want to make it ready for PostgreSQL via ODBC.

 

For performance reasons we use bulk inserts/updat= es.

 

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 t= o an SQLULEN variable

SQLExecute // ends with SQL_SUCCESS

 

SQLRowCount // delivers 1 !!!!

 

SQLEndTrans // with COMMIT

 

When necessary I can provide a full ODBC trace.

 

All records were written into table.

 

Thanks in advance.

 

Regards

 

Johann Letzel

 

 

 

--=_9abac0feb59afe27bf3c3cd7dd8aa425--