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--