pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedSQLParamOptions(): Incorrect base for returned row.
5+ messages / 2 participants
[nested] [flat]
* SQLParamOptions(): Incorrect base for returned row.
@ 2002-10-24 17:03 Barry Cohen <bcohen@usdata.com>
0 siblings, 1 reply; 5+ messages in thread
From: Barry Cohen @ 2002-10-24 17:03 UTC (permalink / raw)
To: pgsql-odbc
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.
Thanks in advance for any info.
Regards,
bjc
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: SQLParamOptions(): Incorrect base for returned row.
@ 2002-10-28 03:56 Hiroshi Inoue <Inoue@tpf.co.jp>
parent: Barry Cohen <bcohen@usdata.com>
0 siblings, 0 replies; 5+ messages in thread
From: Hiroshi Inoue @ 2002-10-28 03:56 UTC (permalink / raw)
To: Barry Cohen <bcohen@usdata.com>; +Cc: pgsql-odbc
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/
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: SQLParamOptions(): Incorrect base for returned row.
@ 2002-10-28 17:25 Barry Cohen <bcohen@usdata.com>
0 siblings, 1 reply; 5+ messages in thread
From: Barry Cohen @ 2002-10-28 17:25 UTC (permalink / raw)
To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-odbc
Yes. The index problem seems to only occur during an error case.
If all rows are successfully inserted, then 'pirow' equals 'crow', which is
correct.
The index problem occurs for error encountered during block inserts,
deletes, and updates.
Regards,
bjc
-----Original Message-----
From: Hiroshi Inoue [mailto:Inoue@tpf.co.jp]
Sent: Sunday, October 27, 2002 9:57 PM
To: Barry Cohen
Cc: 'pgsql-odbc@postgresql.org'
Subject: Re: [ODBC] SQLParamOptions(): Incorrect base for returned row.
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/
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: SQLParamOptions(): Incorrect base for returned row.
@ 2002-10-29 10:43 Hiroshi Inoue <Inoue@tpf.co.jp>
parent: Barry Cohen <bcohen@usdata.com>
0 siblings, 0 replies; 5+ messages in thread
From: Hiroshi Inoue @ 2002-10-29 10:43 UTC (permalink / raw)
To: Barry Cohen <bcohen@usdata.com>; +Cc: pgsql-odbc
Barry Cohen wrote:
>
> Yes. The index problem seems to only occur during an error case.
>
> If all rows are successfully inserted, then 'pirow' equals 'crow',
> which is correct.
>
> The index problem occurs for error encountered during block inserts,
> deletes, and updates.
Please try the snapshot dll at http://w2422.nsk.ne.jp/~inoue/.
regards,
Hiroshi Inoue
http://w2422.nsk.ne.jp/~inoue/
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: SQLParamOptions(): Incorrect base for returned row.
@ 2002-10-29 18:26 Barry Cohen <bcohen@usdata.com>
0 siblings, 0 replies; 5+ messages in thread
From: Barry Cohen @ 2002-10-29 18:26 UTC (permalink / raw)
To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-odbc
Yes. This seems to resolve the problem.
-----Original Message-----
From: Hiroshi Inoue [mailto:Inoue@tpf.co.jp]
Sent: Tuesday, October 29, 2002 4:43 AM
To: Barry Cohen
Cc: 'pgsql-odbc@postgresql.org'
Subject: Re: [ODBC] SQLParamOptions(): Incorrect base for returned row.
Barry Cohen wrote:
>
> Yes. The index problem seems to only occur during an error case.
>
> If all rows are successfully inserted, then 'pirow' equals 'crow',
> which is correct.
>
> The index problem occurs for error encountered during block inserts,
> deletes, and updates.
Please try the snapshot dll at http://w2422.nsk.ne.jp/~inoue/.
regards,
Hiroshi Inoue
http://w2422.nsk.ne.jp/~inoue/
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2002-10-29 18:26 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-10-24 17:03 SQLParamOptions(): Incorrect base for returned row. Barry Cohen <bcohen@usdata.com>
2002-10-28 03:56 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2002-10-28 17:25 Re: SQLParamOptions(): Incorrect base for returned row. Barry Cohen <bcohen@usdata.com>
2002-10-29 10:43 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2002-10-29 18:26 Re: SQLParamOptions(): Incorrect base for returned row. Barry Cohen <bcohen@usdata.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox