title: Where am I wrong? SetDataBuffer for DATE
body: <p>I want to do array fetch for DATE in oracle with following code. It compiles alright and export all other data types correctly, except for the DATE type. The program says "ora-32146 cannot peform operation on a null date".</p>
  
  <p>Any one can see where I am wrong?</p>
  
  <pre><code>    Statement *stmt = conn-&gt;createStatement("SELECT AGE,CASH2, BIRTHDATE from myTable2"); /*, CASH1, CASH2, BIRTHDATE*/
      //stmt-&gt;setMaxParamSize(1,sizeof(Number));
      ResultSet *rs=stmt-&gt;executeQuery();
      string myName[400];
      int myAge[400];
      double myCash1[400];
      double myCash2[400];
      oracle::occi::Date myBirthDate[400];
  
      //rs-&gt;setDataBuffer(1,myName,OCCI_SQLT_STR,sizeof(string));
      rs-&gt;setDataBuffer(1,myAge,OCCIINT,sizeof(int));
      rs-&gt;setDataBuffer(2, myCash2, OCCIBDOUBLE, sizeof(double),NULL);
      rs-&gt;setDataBuffer(3, myBirthDate,OCCI_SQLT_DATE, sizeof(oracle::occi::Date),NULL);
  
      while (rs-&gt;next(200)==ResultSet::DATA_AVAILABLE)
      {
          //cout &lt;&lt; "Exporting batch..." &lt;&lt; endl;
          for(size_t i=0;i&lt;rs-&gt;getNumArrayRows();i++)
          {
              //cout &lt;&lt; myName[i] &lt;&lt; endl;
              cout &lt;&lt; myAge[i] &lt;&lt; endl;
              //cout &lt;&lt; myCash1[i] &lt;&lt; endl;
              cout &lt;&lt; myCash2[i] &lt;&lt; endl;
              int y;
              unsigned int m,d,h,mm,s;
              myBirthDate[i].getDate(y,m,d,h,mm,s);
              cout &lt;&lt; y &lt;&lt;"-"&lt;&lt;m&lt;&lt;"-"&lt;&lt;s &lt;&lt; endl;
          }
      }
  </code></pre>