You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/11/18 07:58:59 UTC

[GitHub] [incubator-shardingsphere] gfreezy opened a new pull request #3547: `getResultSet` should return null after `executeUpdate`

gfreezy opened a new pull request #3547: `getResultSet` should return null after `executeUpdate`
URL: https://github.com/apache/incubator-shardingsphere/pull/3547
 
 
   Fixes #3523.
   
   According to the doc of  interface `Statement`, `Statement.getResultSet` should return `null` when `the result is an update count`.
   
   ```java
   
       /**
        *  Retrieves the current result as a <code>ResultSet</code> object.
        *  This method should be called only once per result.
        *
        * @return the current result as a <code>ResultSet</code> object or
        * <code>null</code> if the result is an update count or there are no more results
        * @exception SQLException if a database access error occurs or
        * this method is called on a closed <code>Statement</code>
        * @see #execute
        */
       ResultSet getResultSet() throws SQLException;
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services