Subject | Re: PreparedStatements |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-04-06T12:11:34Z |
> It seems that PreparedStatements are not supported in JayBird as theYour understanding of sources is wrong. If you check FBField
> source for FBField.java shows the following for all set methods:
>
> public void setDate(Date value, Calendar cal) throws SQLException
> {
> throw (SQLException)createException(
> DATE_CONVERSION_ERROR).fillInStackTrace();
> }
>
>
> The release notes say that PreparedStatements are working. What's
> the truth?
modifiers, you will see that class is abstract. You simply cannot
instantiate it. When you check AbstractPreparedStatement and
FBField.createField() method, you will see that it uses FBField
subclasses, which implement only methods that are relevant for the
particular data type. For possible conversion, see JDBC specification
(somewhere in appendix, probably appendix B).
So, PreparedStatement is fully supported as well as
CallableStatement. Version from CVS passes most of JDBC CTS suite
(only tests that are not relevant for Firebird were excluded).
Roman