Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id C0DFD1336DB6 for ; Thu, 28 Oct 2010 10:02:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 72525-06 for ; Thu, 28 Oct 2010 13:02:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 8A59513364DE for ; Thu, 28 Oct 2010 10:02:21 -0300 (ADT) Received: (qmail 1275 invoked by uid 512); 28 Oct 2010 13:02:18 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 28 Oct 2010 13:02:18 -0000 Received: from unknown (HELO ?192.168.24.51?) (183.76.21.68) by sd.tpf.co.jp with SMTP; 28 Oct 2010 13:02:18 -0000 Message-ID: <4CC97454.2040500@tpf.co.jp> Date: Thu, 28 Oct 2010 22:02:12 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Bj=F8rn_Ivar_Katla?= CC: "pgsql-odbc@postgresql.org" Subject: Re: adodb - absolutepage References: <4CC8F4A3.9050608@tpf.co.jp> <81C821E7-0FA2-41DB-A850-D03703F26405@bitmaker.no> In-Reply-To: <81C821E7-0FA2-41DB-A850-D03703F26405@bitmaker.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.158 tagged_above=-10 required=5 tests=BAYES_05=-0.5, DNS_FROM_RFC_BOGUSMX=1.668, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: * X-Archive-Number: 201010/32 X-Sequence-Number: 10477 (2010/10/28 21:20), Bjørn Ivar Katla wrote: > Here are the results. Pagecount are correct ( pagesize set to 20, records: 28) > > rs.absolutepage : -1 > rs.pagecount: 2 > rs.cursortype: 3 > rs.locktype: 3 > rs.cusorlocation: 2 Doesn't rs.CursorLocation=2 mean adUseServer? regards, Hiroshi Inoue > regards > Bjørn Ivar Katla > >> >> (2010/10/28 4:58), Bjørn Ivar Katla wrote: >>> Hi, >>> >>> I am implementing PostgreSQL as a replacement for a ms sql server web application and are using pgsqlodbc (8.4.2) on my windows IIS/.ASP against my 8.4 postgreSQL database on an ubuntu server. >>> >>> Part of this applications is to enable users to search data and only have 20 records displayed on each page. This is done by use of the .absolutepage property of ADODB.Recordset object. I set pagesize and when I open the recordset - the rs.absolutepage is -1 >>> >>> Here is the parameters I set when opening the recordset. >>> >>> rs.CursorLocation = adUseClient >>> rs.PageSize = 20 >>> rs.Open sql, sconn,1,3 >> >> I see .absolutePage=1 here. >> >> Could you display .CursorType, .LockType or .CursorLocation after >> opening the recordset? >> >> regards, >> Hiroshi Inoue