Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 40E37475EEE for ; Sun, 27 Oct 2002 22:55:43 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 6BD3F475ED4 for ; Sun, 27 Oct 2002 22:55:41 -0500 (EST) Received: (qmail 7154 invoked from network); 28 Oct 2002 03:55:43 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 28 Oct 2002 03:55:43 -0000 Received: from tpf.co.jp (3dgateway1 [126.0.1.60]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id MAA17045; Mon, 28 Oct 2002 12:55:42 +0900 (JST) Message-ID: <3DBCB585.816EC4C1@tpf.co.jp> Date: Mon, 28 Oct 2002 12:56:53 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Barry Cohen Cc: "'pgsql-odbc@postgresql.org'" Subject: Re: SQLParamOptions(): Incorrect base for returned row. References: <7AE316508068D311BE7700A0C9B6BA550284B731@EXCH_CLUSTER> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/87 X-Sequence-Number: 2172 Barry Cohen wrote: > > Server: PostgreSQL Server on Linux (as bundled with RedHat 7.3) > Client: Windows Insight Distribution Systems driver 7.02.00.03 > > Hello, > > When performing a block insert, SQLParamOptions() can be used > to return the index of the last row processed. According to > the MSDN documentation, the index should be one based. > > MSDN: "As a statement executes, the driver sets pirow to the > number of the current row of parameter values; the first row > is row number 1. The contents of pirow can be used as follows: ..." > > The PostgreSQL driver seems to be returning an index that is zero based. Is this only for error cases ? regards, Hiroshi Inoue http://w2422.nsk.ne.jp/~inoue/