Re: How to implement a dynamic string into a sql statement? - Mailing list pgsql-jdbc

From David G Johnston
Subject Re: How to implement a dynamic string into a sql statement?
Date
Msg-id 1409077618913-5816359.post@n5.nabble.com
Whole thread Raw
In response to Re: How to implement a dynamic string into a sql statement?  ("Lussier, Denis" <denisl@openscg.com>)
Responses Re: How to implement a dynamic string into a sql statement?  (Craig Ringer <craig@2ndquadrant.com>)
List 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.


pgsql-jdbc by date:

Previous
From: "Lussier, Denis"
Date:
Subject: Re: How to implement a dynamic string into a sql statement?
Next
From: David G Johnston
Date:
Subject: Re: How to implement a dynamic string into a sql statement?