From me@alternize.com Wed Nov 9 14:52:52 2005 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0C8A3D7AD2 for ; Wed, 9 Nov 2005 10:52:52 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61921-08 for ; Wed, 9 Nov 2005 14:52:48 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.refusion.com (mail.refusion.com [213.144.155.20]) by svr1.postgresql.org (Postfix) with ESMTP id EF246D7E47 for ; Wed, 9 Nov 2005 10:52:49 -0400 (AST) Received: from iwing by mail.refusion.com (MDaemon.PRO.v8.1.0.R) with ESMTP id md50000359679.msg for ; Wed, 09 Nov 2005 15:52:04 +0100 Message-ID: <0bde01c5e53d$3c736b50$0201a8c0@iwing> From: To: Subject: 8.1.1: recordset-paging severerly broken! Date: Wed, 9 Nov 2005 15:52:41 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0BDB_01C5E545.9DE3BFE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.1830 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 X-Authenticated-Sender: info@alternize.com X-Spam-Processed: mail.refusion.com, Wed, 09 Nov 2005 15:52:04 +0100 (not processed: message from trusted or authenticated source) X-MDRemoteIP: 80.238.133.93 X-Return-Path: me@alternize.com X-MDaemon-Deliver-To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.859 required=5 tests=[AWL=-1.565, DNS_FROM_RFC_DSN=2.872, HTML_MESSAGE=0.001, NO_REAL_NAME=0.55, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 1.859 X-Spam-Level: * X-Archive-Number: 200511/88 X-Sequence-Number: 6325 This is a multi-part message in MIME format. ------=_NextPart_000_0BDB_01C5E545.9DE3BFE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi list using pgsql 8.1 and odbc driver 8.1.1, the recordset paging is broken = severerly! only the first 100 records are returned. the 101th record is the 1st = record again instead of the real 101th record from the db. when using a = pagesize of 15, the following happens: page1: --------- record 1 record 2 record 3 ... page2: --------- record 16 record 17 ... page 7: --------- record 91 record 92 record 93 record 94 record 95 record 96 record 97 record 98 record 99 record 100 record 1 <--- here, instead of receving record 101, the odbc driver = restarts from the beginning! record 2 record 3 record 4 record 5 page 8: --------- record 6 record 7 record 8 .... and so on... the pagecount (in my case: 64 pages with total 954 records) is accurate. = also when runing the query on the db itself all records are reutrned = properly. therefore the odbc driver seems to mess things up big time! below you find the simplified code used to initiate paging. Set rsRecords =3D Server.CreateObject("ADODB.Recordset") =20 rsRecords.CursorLocation =3D adUseClient rsRecords.PageSize =3D 15 ' set pagesize rsRecords.Open strQuery, dbConn, adOpenKeyset rsRecords.AbsolutePage =3D lPage ' here we jump to the selected pages lCount =3D 0 do until rsRecords.EOF or (lCount =3D cF_ThreadsPerPage) lCount =3D lCount + 1 response.write rsRecords("id") rsRecords.MoveNext=20 loop=20 rsRecords.Close the problem is in both UNICODE and ANSI version of the driver. a quick fix or workaround would be very much appreciated! thomas ------=_NextPart_000_0BDB_01C5E545.9DE3BFE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi list
 
using pgsql 8.1 and odbc driver = 8.1.1, the=20 recordset paging is broken severerly!
only the first 100 records are = returned. the 101th=20 record is the 1st record again instead of the real 101th record from the = db.=20 when using a pagesize of 15, the following happens:
 
page1:
---------
record 1
record 2
record 3
...
 
page2:
---------
record 16
record 17
...
 
page 7:
---------
record 91
record 92
record 93
record 94
record 95
record 96
record 97
record 98
record 99
record 100
record 1  <--- here, instead of = receving=20 record 101, the odbc driver restarts from the = beginning!
record 2
record 3
record 4
record=20 5
 
page 8:
---------
record 6
record 7
record 8
....
 
and so on...
the pagecount (in my case: 64 pages with total 954 records) is = accurate.=20 also when runing the query on the db itself all records are reutrned = properly.=20 therefore the odbc driver seems to mess things up big time!
 
below you find the simplified code used to initiate = paging.
 
Set rsRecords =3D=20 Server.CreateObject("ADODB.Recordset")
 
rsRecords.CursorLocat= ion =3D=20 adUseClient
rsRecords.PageSize =3D 15 ' set = pagesize
rsRecords.Open=20 strQuery, dbConn, adOpenKeyset
 
rsRecords.AbsolutePage =3D lPage  = ' here we jump=20 to the selected pages
lCount =3D 0
do until rsRecords.EOF or (lCount =3D=20 cF_ThreadsPerPage)
  lCount =3D lCount +=20 1
  response.write rsRecords("id")
  rsRecords.MoveNext 
loop
rsRecords.Close
the problem is in both UNICODE and ANSI version of the = driver.
a quick fix or workaround would be very much appreciated!
 
thomas
------=_NextPart_000_0BDB_01C5E545.9DE3BFE0-- From dpage@vale-housing.co.uk Wed Nov 9 15:32:03 2005 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D298CD9B47 for ; Wed, 9 Nov 2005 11:32:03 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76726-04 for ; Wed, 9 Nov 2005 15:31:59 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id CDC79D9A9F for ; Wed, 9 Nov 2005 11:32:01 -0400 (AST) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-32.mail.demon.net with esmtp (Exim 4.42) id 1EZrvi-000I2E-7P for pgsql-odbc@postgresql.org; Wed, 09 Nov 2005 15:32:06 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5E542.BD727A0E" Subject: Re: 8.1.1: recordset-paging severerly broken! Date: Wed, 9 Nov 2005 15:32:06 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] 8.1.1: recordset-paging severerly broken! Thread-Index: AcXlPXWDr2CcTzSASkqZGrV1U/weZgABOzww From: "Dave Page" To: , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.076 required=5 tests=[AWL=0.075, HTML_MESSAGE=0.001] X-Spam-Score: 0.076 X-Spam-Level: X-Archive-Number: 200511/89 X-Sequence-Number: 6326 This is a multi-part message in MIME format. ------_=_NextPart_001_01C5E542.BD727A0E Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable =20 ________________________________ From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of me@alternize.com Sent: 09 November 2005 14:53 To: pgsql-odbc@postgresql.org Subject: [ODBC] 8.1.1: recordset-paging severerly broken! =09 =09 hi list =20 using pgsql 8.1 and odbc driver 8.1.1, the recordset paging is broken severerly! only the first 100 records are returned. the 101th record is the 1st record again instead of the real 101th record from the db. when using a pagesize of 15, the following happens:=20 =20 Argh! So wrapped up in fixing use declare/fetch that none of us noticed that non-declare/fetch mode broke :-( =20 I've committed a fix for this, thanks for the report. Would you like a test DLL to try? Alternatively, try turning Use Declare/Fetch on. =20 Regards, Dave =20 =20 ------_=_NextPart_001_01C5E542.BD727A0E Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable
 


From: = pgsql-odbc-owner@postgresql.org=20 [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of=20 me@alternize.com
Sent: 09 November 2005 = 14:53
To:=20 pgsql-odbc@postgresql.org
Subject: [ODBC] 8.1.1: = recordset-paging=20 severerly broken!

hi list
 
using pgsql 8.1 and odbc driver = 8.1.1, the=20 recordset paging is broken severerly!
only the first 100 records are = returned.=20 the 101th record is the 1st record again instead of the real 101th = record from=20 the db. when using a pagesize of 15, the following happens: 
 
=
Argh! So wrapped up in fixing use declare/fetch = that none of=20 us noticed that non-declare/fetch mode broke=20 :-(
 
I've committed a fix for this, thanks for the report. = Would you=20 like a test DLL to try? Alternatively, try turning Use Declare/Fetch=20 on.
 
Regards, Dave
 
 
------_=_NextPart_001_01C5E542.BD727A0E-- From me@alternize.com Wed Nov 9 15:45:39 2005 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C9AA8D8056 for ; Wed, 9 Nov 2005 11:45:39 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78086-06 for ; Wed, 9 Nov 2005 15:45:32 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.refusion.com (mail.refusion.com [213.144.155.20]) by svr1.postgresql.org (Postfix) with ESMTP id 04DA8D6FCC for ; Wed, 9 Nov 2005 11:45:33 -0400 (AST) Received: from iwing by mail.refusion.com (MDaemon.PRO.v8.1.0.R) with ESMTP id md50000359774.msg for ; Wed, 09 Nov 2005 16:44:46 +0100 Message-ID: <0c6401c5e544$978dda00$0201a8c0@iwing> From: To: "Dave Page" , References: Subject: Re: 8.1.1: recordset-paging severerly broken! Date: Wed, 9 Nov 2005 16:45:20 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0C61_01C5E54C.F9013BD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.1830 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 X-Authenticated-Sender: info@alternize.com X-Spam-Processed: mail.refusion.com, Wed, 09 Nov 2005 16:44:46 +0100 (not processed: message from trusted or authenticated source) X-MDRemoteIP: 80.238.133.93 X-Return-Path: me@alternize.com X-MDaemon-Deliver-To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.904 required=5 tests=[AWL=-1.520, DNS_FROM_RFC_DSN=2.872, HTML_MESSAGE=0.001, NO_REAL_NAME=0.55, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 1.904 X-Spam-Level: * X-Archive-Number: 200511/90 X-Sequence-Number: 6327 This is a multi-part message in MIME format. ------=_NextPart_000_0C61_01C5E54C.F9013BD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi dave how does one turn on use declare / fetch? and yes, if you got a dll i'll happily test it cheers, thomas ----- Original Message -----=20 From: Dave Page=20 To: me@alternize.com ; pgsql-odbc@postgresql.org=20 Sent: Wednesday, November 09, 2005 4:32 PM Subject: RE: [ODBC] 8.1.1: recordset-paging severerly broken! -------------------------------------------------------------------------= --- From: pgsql-odbc-owner@postgresql.org = [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of me@alternize.com Sent: 09 November 2005 14:53 To: pgsql-odbc@postgresql.org Subject: [ODBC] 8.1.1: recordset-paging severerly broken! hi list using pgsql 8.1 and odbc driver 8.1.1, the recordset paging is = broken severerly! only the first 100 records are returned. the 101th record is the 1st = record again instead of the real 101th record from the db. when using a = pagesize of 15, the following happens:=20 Argh! So wrapped up in fixing use declare/fetch that none of us = noticed that non-declare/fetch mode broke :-( I've committed a fix for this, thanks for the report. Would you like a = test DLL to try? Alternatively, try turning Use Declare/Fetch on. Regards, Dave ------=_NextPart_000_0C61_01C5E54C.F9013BD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi dave
 
how does one turn on use declare /=20 fetch?
 
and yes, if you got a dll i'll happily = test=20 it
 
cheers,
thomas
----- Original Message -----
From:=20 Dave=20 Page
To: me@alternize.com ; pgsql-odbc@postgresql.org =
Sent: Wednesday, November 09, = 2005 4:32=20 PM
Subject: RE: [ODBC] 8.1.1:=20 recordset-paging severerly broken!

 


From: pgsql-odbc-owner@postgres= ql.org=20 [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of me@alternize.com
Sent: 09 = November 2005 14:53
To: pgsql-odbc@postgresql.orgSubject:=20 [ODBC] 8.1.1: recordset-paging severerly = broken!

hi list
 
using pgsql 8.1 and odbc = driver 8.1.1, the=20 recordset paging is broken severerly!
only the first 100 records = are returned.=20 the 101th record is the 1st record again instead of the real 101th = record=20 from the db. when using a pagesize of 15, the following = happens: 
 
=
Argh! So = wrapped up in=20 fixing use declare/fetch that none of us noticed that = non-declare/fetch mode=20 broke :-(
 
I've committed a fix = for this,=20 thanks for the report. Would you like a test DLL to try? = Alternatively, try=20 turning Use Declare/Fetch on.
 
Regards, Dave
 
 
= ------=_NextPart_000_0C61_01C5E54C.F9013BD0--