title: JDBC oracle stored procedure update count is -1
body: <p>Oracle 11g, Java 8, ojdbc8</p>
  
  <p>stored procedure with OUT REF_CURSOR, e.g.,</p>
  
  <pre><code>create or replace procedure foo(employeeId IN number, c OUT SYS_REFCURSOR) AS
  BEGIN
      open c for select * from Employee where id = employeeId;
      update Employee set name='New Name" where id= employeeId;
  END;
  </code></pre>
  
  <p>JDBC call the procedure:</p>
  
  <pre><code>CallableStatement statement = connection.prepareCall("{call foo(?,?)}");
  statement.setObject(1, 100);
  statement.registerOutParameter(2, oracle.jdbc.OracleTupes.CURSOR);
  statement.execute();
  
  int count = statement.getUpdateCount(); // error: return -1
  assertEquals(1, count);
  </code></pre>
  
  <p>The update count should be 1, but it is -1.</p>