mirror of https://github.com/apache/openjpa.git
Added warning about Oracle's ArrayIndexOutOfBoundsException JDBC driver bug.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b25dfe66f4
commit
223b81db2b
|
@ -536,8 +536,16 @@ public class OracleDictionary
|
|||
|
||||
public Timestamp getTimestamp(ResultSet rs, int column, Calendar cal)
|
||||
throws SQLException {
|
||||
if (cal == null)
|
||||
return super.getTimestamp(rs, column, cal);
|
||||
if (cal == null) {
|
||||
try {
|
||||
return super.getTimestamp(rs, column, cal);
|
||||
} catch (ArrayIndexOutOfBoundsException ae) {
|
||||
// CR295604: issue a warning this this bug can be gotten
|
||||
// around with SupportsTimestampNanos=false
|
||||
log.warn(_loc.get("oracle-timestamp-bug"), ae);
|
||||
throw ae;
|
||||
}
|
||||
}
|
||||
|
||||
// handle Oracle bug where nanos not returned from call with Calendar
|
||||
// parameter
|
||||
|
|
Loading…
Reference in New Issue