title: ArrayIndexOutOfBoundsException when use AutoGeneratedKeys and Oracle
body: <p>I use ojdbc6-11.1.0.7.0 and when:</p>
  
  <pre><code>ps = connection.prepareStatement("Insert into A (b, C) values (?, ?)", Statement.RETURN_GENERATED_KEYS);
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>java.lang.ArrayIndexOutOfBoundsException: 3
      at oracle.jdbc.driver.OracleSql.computeBasicInfo(OracleSql.java:950)
      at oracle.jdbc.driver.OracleSql.getSqlKind(OracleSql.java:623)
      at oracle.jdbc.driver.OraclePreparedStatement.&lt;init&gt;(OraclePreparedStatement.java:1212)
      at oracle.jdbc.driver.T4CPreparedStatement.&lt;init&gt;(T4CPreparedStatement.java:28)
      at oracle.jdbc.driver.T4CDriverExtension.allocatePreparedStatement(T4CDriverExtension.java:68)
      at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3140)
      at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3042)
      at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:5890)
  </code></pre>
  
  <p>I just read about this bug <a href="https://stackoverflow.com/questions/277744/jdbc-oracle-arrayindexoutofboundsexception">here</a>, but solution does not help because I use Statement.RETURN_GENERATED_KEYS feature.</p>
  
  <p>Is there any other solution?</p>