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:
Marc Prud'hommeaux 2006-10-06 18:06:17 +00:00
parent b25dfe66f4
commit 223b81db2b
1 changed files with 10 additions and 2 deletions

View File

@ -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