Subject | Re: FBPreparedStatement |
---|---|
Author | patcom123 |
Post date | 2001-12-21T12:03:29Z |
> Just a question: would it be possible to "enhance" theI made this request a while ago (and have since made the changes to
> setString(int,String) method to be used to store numeric values (in
> numeric columns, obviously...)? I.e. something like
> setString(1,"123.4"), where column 1 is a decimal(10,2) or so. With
> the current version I get an Exception ("not a string type").
my version) to allow compatibility with the old interclient. It seems
that conversion isn't part of the standard as it can introduce
ambiguities.
You can use setObject, which does do automatic conversion - but it
was easier to re-write setString than change 1000s of references to
it.
JOHN