|
This should have been fixed as part of
Thanks for the patch (I wish I had seem it a little earlier). Hi,
I don't think this is already fixed. I am using Sybase and I still get Caught: java.sql.SQLException: JZ0SE: Invalid object type (or null object) specified for setObject(). I use code similar to below but if any one of the fields are null, I get the error. dest.executeUpdate(insertSql, [ I think that would be a different issue.
This bug was related to invalid SQL being generated when there were null references in a GString for sql execution. it would generate your issue looks more like Sybase isn't letting you set null, or they are generating using the wrong object type when calling "setNull(SQLType,ColumnIdx)" you should probably file a different issue along with a stack trace. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
asSql is expected to replace null object values in the GString with "null" (to avoid issues with databases not liking setObject(idx,null)), when it does this, it is supposed to remove the object from the param list so the prepared statement will have the correct number of args set to match the "?"