From chambers@imageworks.com Tue Sep 5 21:16:43 2006 X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 512ED9FB452 for ; Tue, 5 Sep 2006 18:16:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 31737-09 for ; Tue, 5 Sep 2006 21:16:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 8B6CC9FB280 for ; Tue, 5 Sep 2006 18:16:35 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from outbound1-fra-R.bigfish.com (outbound-fra.frontbridge.com [62.209.45.174]) by svr4.postgresql.org (Postfix) with ESMTP id 3764F5AF03C for ; Tue, 5 Sep 2006 21:16:34 +0000 (GMT) Received: from outbound1-fra.bigfish.com (localhost.localdomain [127.0.0.1]) by outbound1-fra-R.bigfish.com (Postfix) with ESMTP id CC42ED41D85 for ; Tue, 5 Sep 2006 21:16:31 +0000 (UTC) Received: from mail15-fra-R.bigfish.com (unknown [172.18.18.1]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by outbound1-fra.bigfish.com (Postfix) with ESMTP id C4668D41D4B for ; Tue, 5 Sep 2006 21:16:31 +0000 (UTC) Received: from mail15-fra.bigfish.com (localhost.localdomain [127.0.0.1]) by mail15-fra-R.bigfish.com (Postfix) with ESMTP id A7219773D9B for ; Tue, 5 Sep 2006 21:16:31 +0000 (UTC) X-BigFish: V Received: by mail15-fra (MessageSwitch) id 1157490991635345_24171; Tue, 5 Sep 2006 21:16:31 +0000 (UCT) Received: from owa2.spimageworks.com (unknown [160.33.20.32]) by mail15-fra.bigfish.com (Postfix) with ESMTP id 491667732B3 for ; Tue, 5 Sep 2006 21:16:31 +0000 (UTC) Received: from [172.29.105.69] ([172.30.104.3]) by owa2.spimageworks.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 5 Sep 2006 14:16:30 -0700 Message-ID: <44FDE92E.70206@imageworks.com> Date: Tue, 05 Sep 2006 14:16:30 -0700 From: Matt Chambers Reply-To: chambers@imageworks.com Organization: Sony Pictures Imageworks User-Agent: Mozilla Thunderbird 1.0.7-1.4.1.centos4 (X11/20051007) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: scollable result sets Content-Type: multipart/alternative; boundary="------------040000050901010802070406" X-OriginalArrivalTime: 05 Sep 2006 21:16:30.0147 (UTC) FILETIME=[8E3A7930:01C6D130] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.35 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200609/13 X-Sequence-Number: 15731 This is a multi-part message in MIME format. --------------040000050901010802070406 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Are they broken in 8.1? I no matter what I do Postgresl throws an exception with calls to functions like previous() and last(). x_conn.prepareCall ( os_query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY ); -- *Matt Chambers * *Sony Pictures Imageworks* Software Engineer --------------040000050901010802070406 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Are they broken in 8.1?  I no matter what I do Postgresl throws an exception with calls to functions like previous() and last().
x_conn.prepareCall ( os_query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY );   
--
Matt Chambers <chambers@imageworks.com>
Sony Pictures Imageworks
Software Engineer

--------------040000050901010802070406-- From Christian.Koth@smiths-heimann.com Wed Sep 6 07:41:57 2006 X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id AE6C59FA5EA for ; Wed, 6 Sep 2006 04:41:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 07846-02-3 for ; Wed, 6 Sep 2006 04:41:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp1.smiths.com (smtp1.smiths.com [192.208.34.50]) by postgresql.org (Postfix) with ESMTP id 2A0849FB2B5 for ; Wed, 6 Sep 2006 04:40:52 -0300 (ADT) Received: from COSSMGIMS04.EMAIL.CORP.TLD (unknown [10.225.225.147]) by smtp1.smiths.com (Postfix) with ESMTP id 52D7132836 for ; Wed, 6 Sep 2006 01:40:51 -0600 (MDT) Received: from COSSMGMBX04.EMAIL.CORP.TLD ([10.225.225.26]) by COSSMGFEB03.EMAIL.CORP.TLD with Microsoft SMTPSVC(6.0.3790.1830); Wed, 6 Sep 2006 01:40:50 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6D187.C5EEFEFD" Subject: Re: scollable result sets Date: Wed, 6 Sep 2006 01:39:39 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: [JDBC] scollable result sets Thread-Index: AcbRMKh3/h827F5wSQ+MM+srUMOq7QAVpK0A From: "Koth, Christian (DWBI)" To: Cc: X-OriginalArrivalTime: 06 Sep 2006 07:40:50.0786 (UTC) FILETIME=[C6825C20:01C6D187] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.413 tagged_above=0 required=5 tests=AWL, HTML_40_50, HTML_MESSAGE, HTML_TEXT_AFTER_BODY, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200609/14 X-Sequence-Number: 15732 This is a multi-part message in MIME format. ------_=_NextPart_001_01C6D187.C5EEFEFD Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Matt, no they are not broken. But AFAIK a ScrollableResultSet with Postgres JDBC supports forward only.= Try again with different settings and of course don't call previous(). If you need scroll back functionality you could use cursors. Christian ________________________________ Von: pgsql-jdbc-owner@postgresql.org= [mailto:pgsql-jdbc-owner@postgresql.org] Im Auftrag von Matt Chambers Gesendet: Dienstag, 5. September 2006 23:16 An: pgsql-jdbc@postgresql.org Betreff: [JDBC] scollable result sets =0D =0D Are they broken in 8.1? I no matter what I do Postgresl throws an= exception with calls to functions like previous() and last(). x_conn.prepareCall ( os_query, ResultSet.TYPE_SCROLL_INSENSITIVE,= ResultSet.CONCUR_READ_ONLY ); =0D =0D --=0D =0D Matt Chambers =0D Sony Pictures Imageworks Software Engineer =0D =0D

************************************************
The information contained in, or attached to, this e-mail, may contain= confidential information and is intended solely for the use of the= individual or entity to whom they are addressed and may be subject to= legal privilege. If you have received this e-mail in error you should= notify the sender immediately by reply e-mail, delete the message from= your system and notify your system manager. Please do not copy it for any= purpose, or disclose its contents to any other person. The views or= opinions presented in this e-mail are solely those of the author and do= not necessarily represent those of the company. The recipient should= check this e-mail and any attachments for the presence of viruses. The= company accepts no liability for any damage caused, directly or= indirectly, by any virus transmitted in this email.
************************************************
------_=_NextPart_001_01C6D187.C5EEFEFD Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Matt,
no they are not broken.
But AFAIK a ScrollableResultSet with= =0D Postgres JDBC supports forward= =0D only. Try again with different settings= and of=0D course don't call previous().
If you need scroll back= functionality=0D you could use=0D cursors.
Christian


Von:= pgsql-jdbc-owner@postgresql.org=0D [mailto:pgsql-jdbc-owner@postgresql.org] Im Auftrag von Matt=0D Chambers
Gesendet: Dienstag, 5. September 2006= 23:16
An:=0D pgsql-jdbc@postgresql.org
Betreff: [JDBC] scollable result=0D sets

Are they broken in 8.1?  I no matter what I do Postgresl= =0D throws an exception with calls to functions like previous() and=0D last().
x_conn.prepareCall ( os_query,= ResultSet.TYPE_SCROLL_INSENSITIVE,=0D ResultSet.CONCUR_READ_ONLY );   
--
Matt=0D Chambers <chambers@imageworks.com>=
Sony Pictures Imageworks
Software=0D Engineer







************************************************

The information contained in, or attached to, this e-mail, may contain= confidential information and is intended solely for the use of the= individual or entity to whom they are addressed and may be subject to= legal privilege. If you have received this e-mail in error you should= notify the sender immediately by reply e-mail, delete the message from= your system and notify your system manager. Please do not copy it for any= purpose, or disclose its contents to any other person. The views or= opinions presented in this e-mail are solely those of the author and do= not necessarily represent those of the company. The recipient should= check this e-mail and any attachments for the presence of viruses. The= company accepts no liability for any damage caused, directly or= indirectly, by any virus transmitted in this email.

************************************************


------_=_NextPart_001_01C6D187.C5EEFEFD-- From chambers@imageworks.com Wed Sep 6 16:41:17 2006 X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 26DE49FB3B8 for ; Wed, 6 Sep 2006 13:41:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 57262-01-3 for ; Wed, 6 Sep 2006 13:41:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id ED4C19FB393 for ; Wed, 6 Sep 2006 13:39:54 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from outbound1-cpk-R.bigfish.com (outbound-cpk.frontbridge.com [207.46.163.16]) by svr4.postgresql.org (Postfix) with ESMTP id 7DABD5AF8C2 for ; Wed, 6 Sep 2006 16:39:53 +0000 (GMT) Received: from outbound1-cpk.bigfish.com (localhost.localdomain [127.0.0.1]) by outbound1-cpk-R.bigfish.com (Postfix) with ESMTP id C25981354896; Wed, 6 Sep 2006 16:13:43 +0000 (UTC) Received: from mail90-cpk-R.bigfish.com (unknown [192.168.21.3]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by outbound1-cpk.bigfish.com (Postfix) with ESMTP id BC57B1354747; Wed, 6 Sep 2006 16:13:43 +0000 (UTC) Received: from mail90-cpk.bigfish.com (localhost.localdomain [127.0.0.1]) by mail90-cpk-R.bigfish.com (Postfix) with ESMTP id ACFF752FBF2; Wed, 6 Sep 2006 16:13:43 +0000 (UTC) X-BigFish: V Received: by mail90-cpk (MessageSwitch) id 1157559223619159_4150; Wed, 6 Sep 2006 16:13:43 +0000 (UCT) Received: from owa1.spimageworks.com (unknown [160.33.20.31]) by mail90-cpk.bigfish.com (Postfix) with ESMTP id 80AC0528FD6; Wed, 6 Sep 2006 16:13:43 +0000 (UTC) Received: from [172.29.105.69] ([172.30.104.3]) by owa1.spimageworks.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 6 Sep 2006 09:13:43 -0700 Message-ID: <44FEF3B7.7060507@imageworks.com> Date: Wed, 06 Sep 2006 09:13:43 -0700 From: Matt Chambers Reply-To: chambers@imageworks.com Organization: Sony Pictures Imageworks User-Agent: Mozilla Thunderbird 1.0.7-1.4.1.centos4 (X11/20051007) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Koth, Christian (DWBI)" Cc: pgsql-jdbc@postgresql.org Subject: Re: scollable result sets References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------070209010302020800030203" X-OriginalArrivalTime: 06 Sep 2006 16:13:43.0424 (UTC) FILETIME=[6C6E4800:01C6D1CF] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.589 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, HTML_50_60, HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200609/15 X-Sequence-Number: 15733 This is a multi-part message in MIME format. --------------070209010302020800030203 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I read someplace that the CVS version may support it. Unfortunately, gborg seems to be down for the past day or so. Looking through the code, I see things like: while (x_rset.next()) { x_rset.previous() function_that_calls_next(x_rset) } Is there a better way to do this? With result pointers from other languages, like perl, python, php, I know the size of the result so I can choose the type of loop I want to use. Is there a better way to loop through a result set and have a another function call next? Matt Koth, Christian (DWBI) wrote: > Matt, > no they are not broken. > But AFAIK a ScrollableResultSet with Postgres JDBC supports forward > only. Try again with different settings and of course don't call > previous(). > If you need scroll back functionality you could use cursors. > Christian > > ------------------------------------------------------------------------ > *Von:* pgsql-jdbc-owner@postgresql.org > [mailto:pgsql-jdbc-owner@postgresql.org] *Im Auftrag von *Matt > Chambers > *Gesendet:* Dienstag, 5. September 2006 23:16 > *An:* pgsql-jdbc@postgresql.org > *Betreff:* [JDBC] scollable result sets > > Are they broken in 8.1? I no matter what I do Postgresl throws an > exception with calls to functions like previous() and last(). > x_conn.prepareCall ( os_query, ResultSet.TYPE_SCROLL_INSENSITIVE, > ResultSet.CONCUR_READ_ONLY ); > -- > *Matt Chambers * > *Sony Pictures Imageworks* > Software Engineer > > > > --------------070209010302020800030203 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
I read someplace that the CVS version may support it.  Unfortunately, gborg seems to be down for the past day or so.  Looking through the code, I see things like:

while (x_rset.next()) {
    x_rset.previous()
    function_that_calls_next(x_rset)
}

Is there a better way to do this?  With result pointers from other languages, like perl, python, php, I know the size of the result so I can choose the type of loop I want to use.  Is there a better way to loop through a result set and have a another function call next?

Matt

Koth, Christian (DWBI) wrote:

Matt,
no they are not broken.
But AFAIK a ScrollableResultSet with Postgres JDBC supports forward only. Try again with different settings and of course don't call previous().
If you need scroll back functionality you could use cursors.
Christian


Von: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] Im Auftrag von Matt Chambers
Gesendet: Dienstag, 5. September 2006 23:16
An: pgsql-jdbc@postgresql.org
Betreff: [JDBC] scollable result sets

Are they broken in 8.1?  I no matter what I do Postgresl throws an exception with calls to functions like previous() and last().
x_conn.prepareCall ( os_query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY );   
--
Matt Chambers <chambers@imageworks.com>
Sony Pictures Imageworks
Software Engineer

 

--------------070209010302020800030203-- From oliver@opencloud.com Wed Sep 6 20:12:27 2006 X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 341039FB3AE for ; Wed, 6 Sep 2006 17:12:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 40406-04 for ; Wed, 6 Sep 2006 20:12:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 51E309FB387 for ; Wed, 6 Sep 2006 17:12:22 -0300 (ADT) Received: from 203-173-188-119.bliink.ihug.co.nz ([203.173.188.119] helo=[10.1.1.6]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1GL3ks-000066-QW; Thu, 07 Sep 2006 08:12:14 +1200 Message-ID: <44FF2B99.5020804@opencloud.com> Date: Thu, 07 Sep 2006 08:12:09 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: "Koth, Christian (DWBI)" CC: chambers@imageworks.com, pgsql-jdbc@postgresql.org Subject: Re: scollable result sets References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200609/21 X-Sequence-Number: 15739 Koth, Christian (DWBI) wrote: > Matt, > no they are not broken. Actually I think CallableStatements are (it's already fixed in CVS) > But AFAIK a ScrollableResultSet with Postgres JDBC supports forward > only. This is incorrect. If it's FORWARD_ONLY, it's not scrollable by definition. -O