mirror of https://github.com/apache/openjpa.git
Work around Oracle's inability to call PreparedStatement.setNull(index, Types.OTHER). We will instead used PreparedStatement.setNull(index, Types.NULL).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497683 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4a5e42ff8b
commit
7f2613e394
|
@ -504,6 +504,9 @@ public class OracleDictionary
|
|||
// setNull with DATE; see bug #1171
|
||||
else if (colType == Types.DATE)
|
||||
super.setNull(stmnt, idx, Types.TIMESTAMP, col);
|
||||
// the Oracle driver does not support Types.OTHER with setNull
|
||||
else if (colType == Types.OTHER)
|
||||
super.setNull(stmnt, idx, Types.NULL, col);
|
||||
else
|
||||
super.setNull(stmnt, idx, colType, col);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue