pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: How to implement a dynamic string into a sql statement?
Date: Tue, 26 Aug 2014 11:26:58 -0700 (PDT)
Message-ID: <1409077618913-5816359.post@n5.nabble.com> (raw)
In-Reply-To: <CAHKhnVW++z5zYWowQDb-ev-SJ8TYc-vRamFONnfoCk9K6VorMw@mail.gmail.com>
References: <53FCC2CB.6080507@web.de>
	<CAHKhnVW++z5zYWowQDb-ev-SJ8TYc-vRamFONnfoCk9K6VorMw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Lussier, Denis wrote
> Don't use prepared statements for DDL.

Parameters only handle values, not identifiers.  DDL deals exclusively with
identifiers.  So while you can use prepared statements you cannot
parameterize them - so the prepared aspect becomes fairly useless except for
consistency if you have some sort of wrapper layer making use of them.

David J.





--
View this message in context: http://postgresql.1045698.n5.nabble.com/How-to-implement-a-dynamic-string-into-a-sql-statement-tp581...
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (5+ messages)  latest in thread

Message-ID: <1409077618913-5816359.post@n5.nabble.com>
Permalink:  ../1409077618913-5816359.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1409077618913-5816359.post@n5.nabble.com

 · 

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: david.g.johnston@gmail.com
  Subject: Re: How to implement a dynamic string into a sql statement?
  In-Reply-To: <1409077618913-5816359.post@n5.nabble.com>
  References: <53FCC2CB.6080507@web.de> <CAHKhnVW++z5zYWowQDb-ev-SJ8TYc-vRamFONnfoCk9K6VorMw@mail.gmail.com> <1409077618913-5816359.post@n5.nabble.com>

* 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