title: ojdbc14.jar vs. ojdbc6.jar
body: <p>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. </p>
  
  <p>Env:-</p>
  
  <p><code>Oracle 11g, JDK 1.6, iBatis, PL/SQL</code></p>
  
  <p>Scenario:-</p>
  
  <p><strong>ojdbc14.jar</strong>: if pl/sql returns a variable of type <code>DATE</code> and I try to put that in a java.sql.Date variable then everything works fine. Example: </p>
  
  <p><code>Date annualDate = (Date) map.get("exam_date");</code></p>
  
  <p><strong>ojdbc6.jar</strong>: if pl/sql returns a variable of type <code>DATE</code> and I try to put that in a java.sql.Date variable then I get an exception:</p>
  
  <pre><code>java.lang.ClassCastException: java.sql.Timestamp cannot be cast to java.sql.Date
  </code></pre>