title: OCCI：ORA-01455: converting column overflows integer datatype
body: <p>table:</p>
  
  <pre><code>CREATE TABLE STU(ID INT PRIMARY KEY, NAME VARCHAR2(20), AGE INT)
  INSERT INTO STU VALUES(1, 'ZJW', 24)
  INSERT INTO STU VALUES(2, 'YGL', 25)
  INSERT INTO STU VALUES(3, 'ZLY', 24)
  INSERT INTO STU VALUES(4, 'LBZ', 22)
  </code></pre>
  
  <p>cpp code:</p>
  
  <pre><code>int nId;  
  string strName;
  int nAge;
  cout &lt;&lt; "ID\t" &lt;&lt; "NAME\t" &lt;&lt; "AGE" &lt;&lt; endl;
  while (rs-&gt;next() == true)
  {
       // get values using the getXXX() methods of Resultset
       nId = rs-&gt;getInt(1);
       strName = rs-&gt;getString(2);
       nAge = rs-&gt;getInt(3);
  
       cout &lt;&lt; nId &lt;&lt; "\t" &lt;&lt; strName &lt;&lt; "\t" &lt;&lt; nAge &lt;&lt; endl;
  }
  </code></pre>
  
  <p>when i use occi to query data from oracle, i get this error:
  ORA-01455: converting column overflows integer datatype</p>
  
  <p>my system is centos 64bit,and i know int is 2147483647,and oracle INTEGER is -2<strong>31) to (2</strong>31)-1.
  so why i get this overflow error?
  tks.</p>