pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian Pilcher <arequipeno@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: PreparedStatement syntax extensions?
Date: Fri, 26 Aug 2011 10:51:50 -0500
Message-ID: <j38fen$jcc$1@dough.gmane.org> (raw)

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."
========================================================================




view thread (3+ messages)  latest in thread

Message-ID: <j38fen$jcc$1@dough.gmane.org>
Permalink:  ../j38fen$jcc$1@dough.gmane.org/
Also on:    postgresql.org/message-id/j38fen$jcc$1@dough.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: arequipeno@gmail.com
  Subject: Re: PreparedStatement syntax extensions?
  In-Reply-To: <j38fen$jcc$1@dough.gmane.org>
  References: <j38fen$jcc$1@dough.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox