Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id EA355B5D803 for ; Fri, 26 Aug 2011 13:20:18 -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 39483-01 for ; Fri, 26 Aug 2011 16:20:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id 285F1B5DBE5 for ; Fri, 26 Aug 2011 13:20:07 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qwz8Y-0004uw-Ai for pgsql-jdbc@postgresql.org; Fri, 26 Aug 2011 18:20:06 +0200 Received: from pool-70-104-31-57.dllstx.fios.verizon.net ([70.104.31.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Aug 2011 18:20:06 +0200 Received: from arequipeno by pool-70-104-31-57.dllstx.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Aug 2011 18:20:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Ian Pilcher Subject: PreparedStatement syntax extensions? Date: Fri, 26 Aug 2011 10:51:50 -0500 Lines: 31 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-70-104-31-57.dllstx.fios.verizon.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.391 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RP_MATCHES_RCVD=-0.502, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201108/79 X-Sequence-Number: 22111 First off, I'm pretty much a noob with anything but very basic SQL and JDBC, so apologies in advance if these are stupid questions ... I am using the "WHERE foo = ANY (?)" syntax for my PreparedStatements to avoid dynamically creating gigantic "IN (?, ?, ...)" statements. After much searching, I found it syntax in this thread: http://archives.postgresql.org/pgsql-jdbc/2011-04/msg00019.php With all of my Google-fu, I have been unable to find any other mention of this syntax anywhere else on the Interwebs, which brings me to question #1: Is this construct documented anywhere? A follow-up post contains this PreparedStatement syntax: SELECT ?::int[] Is this specifying a type for the PreparedStatement parameter? If not, what is it doing? And again, is there any documentation of this syntax? Thanks! -- ======================================================================== Ian Pilcher arequipeno@gmail.com "If you're going to shift my paradigm ... at least buy me dinner first." ========================================================================