I noticed the following difference but did not see it documented anywhere. I'm wondering if others have noticed the same thing or can point me to some documentations that proves the same.
Env:-
Oracle 11g, JDK 1.6, iBatis, PL/SQL
Scenario:-
ojdbc14.jar: if pl/sql returns a variable of type DATE
and I try to put that in a java.sql.Date variable then everything works fine. Example:
Date annualDate = (Date) map.get("exam_date");
ojdbc6.jar: if pl/sql returns a variable of type DATE
and I try to put that in a java.sql.Date variable then I get an exception:
java.lang.ClassCastException: java.sql.Timestamp cannot be cast to java.sql.Date