|
The following wording was added to the JDBC 4.0 javadocs to address
this issue: Note: Not all databases allow for a non-typed Null to be sent to the backend. For maximum portability, the setNull or the setObject(int
parameterIndex, Object x, int sqlType) method should be used
instead of setObject(int parameterIndex, Object x).Daniel John Debrunner (JIRA) wrote: [ http://issues.apache.org/jira/browse/DERBY-1938?page=comments#action_12440912 ] Daniel John Debrunner commented on DERBY-1938: ----------------------------------------------Section 13.2.2.2 does not apply here. Since Java null has no type it cannot be mapped using this rule: "the Java Object mapped using the default mapping for that object type. " I think the real justification for changing setObject(col, null) seems be to match other JDBC drivers (which ones?) and/or applications that seem to expect this to work. But there's liittle evidence of that justification in this thread. I think it's clear that the JDBC spec (from the tutorial) indicates that applications should not depend on this behaviour. |
- [jira] Commented: (DERBY-1938) Add support fo... Daniel John Debrunner (JIRA)
- Re: [jira] Commented: (DERBY-1938) Add s... Lance J. Andersen
- Re: [jira] Commented: (DERBY-1938) Add s... Bernt M. Johnsen
- [jira] Commented: (DERBY-1938) Add suppo... Tomohito Nakayama (JIRA)
- [jira] Commented: (DERBY-1938) Add suppo... Tomohito Nakayama (JIRA)
- [jira] Commented: (DERBY-1938) Add suppo... Dag H. Wanvik (JIRA)
