X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx2.hub.org [200.46.204.254]) by postgresql.org (Postfix) with ESMTP id 5BB9A11F6219 for ; Sun, 16 Apr 2006 17:58:31 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0.263 X-Spam-Level: X-Spam-Status: No, score=0.263 required=5 tests=[AWL=0.954, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id Bt5Zr3JPSlD0 for ; Sun, 16 Apr 2006 17:58:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.ukfsn.org (s2.ukfsn.org [217.158.120.143]) by postgresql.org (Postfix) with ESMTP id 470C811F6063 for ; Sun, 16 Apr 2006 17:58:27 -0300 (ADT) Received: from [10.0.1.63] (84-45-236-142.no-dns-yet.enta.net [84.45.236.142]) by mail.ukfsn.org (Postfix) with ESMTP id B6489E70B0 for ; Sun, 16 Apr 2006 21:54:34 +0100 (BST) From: David Goodenough To: pgsql-jdbc@postgresql.org Subject: Re: What is the number equivalient of LIMIT ALL Date: Sun, 16 Apr 2006 21:58:23 +0100 User-Agent: KMail/1.9.1 References: <2F2A7EB72EBAF24582513E72ACCBCAAE0A286B@kniexch01.KineticNetworks.com> In-Reply-To: <2F2A7EB72EBAF24582513E72ACCBCAAE0A286B@kniexch01.KineticNetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604162158.24895.david.goodenough@btconnect.com> X-Archive-Number: 200604/112 X-Sequence-Number: 15046 Works a treat thank you. One last one (I hope). I have a SELECT PreparedStatemet which contains:- ( tried - created) >= interval ? where tried and created are TimeStamps. In earlier releases I could simply use setString( 1, "5 minutes");. Or do I have to change it to ( tried - created) >= ? and then set the interval with setTimestamp, or what? David On Friday 14 April 2006 19:51, Nicholas E. Wakefield wrote: > Try limit null, that appears to return all results. > > -----Original Message----- > From: pgsql-jdbc-owner@postgresql.org > [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of David Goodenough > Sent: Friday, April 14, 2006 11:22 AM > To: pgsql-jdbc@postgresql.org > Subject: [JDBC] What is the number equivalient of LIMIT ALL > > When I try to execute a prepared statement containing LIMIT ? the > Postgresql JDBC now requires the value to be an integer. As the > value for LIMIT can either be a count or ALL this raises a simple > question, what is the numeric value that means ALL? > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq