title: JDBC exception at getting decimal out parameter of stored procedure
body: <p>I'm trying to get parameter from MYSQL procedure.
  My proc: </p>
  
  <pre class="lang-sql prettyprint-override"><code>CREATE PROCEDURE proc(someIn INT UNSIGNED, 
                        anotherIn INT UNSIGNED, 
                        OUT x DECIMAL(10,7),
                        OUT y DECIMAL(10,7))
  </code></pre>
  
  <p>My java code:</p>
  
  <pre class="lang-java prettyprint-override"><code>CallableStatement cs = conn.prepareCall("{call proc(?, ?,?,?)}");
  cs.setLong(1, someLong);
  cs.setLong(2, anotherLong);
  cs.registerOutParameter(3,Types.DECIMAL,7);
  cs.registerOutParameter(4,Types.DECIMAL,7);
  rs = cs.executeQuery();
  if (rs.next()) {
      double x = rs.getBigDecimal(3).doubleValue(); 
      double y = rs.getBigDecimal(4).doubleValue();
  }
  </code></pre>
  
  <p>And I encountered on error at calling rs.next(): </p>
  
  <blockquote>
    <p>java.sql.SQLException: ResultSet is from UPDATE. No Data.</p>
  </blockquote>
  
  <p>If I call the procedure with the same parameters manually, I get the result data.
  I tried to change decimal to double, but this has no effect.</p>