|
|||||||||||
|
Re: [JDBC] setting PreparedStatement parameter using "at time zone interval ?"
From: Tom Lane <tgl(at)sss.pgh.pa.us>
Date: Wed Dec 19 2007 - 10:48:45 EST
That might've worked back before the driver did real prepared statements. It's invalid syntax though, because typename before the constant works only for simple literal string constants. You got away with it when the driver interpolated parameter values into the query as string literals, but you can't do it anymore. ?::interval (or the full-blown CAST syntax) is the right way.
See
regards, tom lane ---------------------------(end of broadcast)---------------------------TIP 5: don't forget to increase your free space map settings Received on Wed Dec 19 10:50:15 2007 This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:41:43 EDT |
||||||||||
|
|||||||||||