Re: How to implement a dynamic string into a sql statement?

From: David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: How to implement a dynamic string into a sql statement?
Date: 2014-08-26 18:26:58
Message-ID: 1409077618913-5816359.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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-tp5816355p5816359.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message David G Johnston 2014-08-26 18:37:32 Re: How to implement a dynamic string into a sql statement?
Previous Message Lussier, Denis 2014-08-26 17:37:04 Re: How to implement a dynamic string into a sql statement?