Re: Bug in SQLRowCount ? - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: Bug in SQLRowCount ?
Date
Msg-id 50F7F7D4.40307@tpf.co.jp
Whole thread Raw
In response to Bug in SQLRowCount ?  ("j.letzel@t-online.de" <j.letzel@t-online.de>)
Responses Re: Bug in SQLRowCount ?  (Johann Letzel <j.letzel@t-online.de>)
List pgsql-odbc
(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



pgsql-odbc by date:

Previous
From: "j.letzel@t-online.de"
Date:
Subject: Bug in SQLRowCount ?
Next
From: Johann Letzel
Date:
Subject: Re: Bug in SQLRowCount ?