FlyingZC commented on PR #21992:
URL: https://github.com/apache/shardingsphere/pull/21992#issuecomment-1325885575

   ```java
   Connection connection = getConnection();
   String query = "select * from t_order;";
   ResultSet resultSet = connection.createStatement().executeQuery(query);
   while (resultSet.next()) {
       // null value
       String status = resultSet.getString(3);
       // will be true
       boolean wasNull = resultSet.wasNull();
       if (wasNull) {
           System.out.print("status: " + status);
       }
   }
   ```
   By my test in mysql JDBC, when `resultSet.getXxx()` return null, 
`resultSet.wasNull()` will be true.It's the same with your change.But maybe we 
should check the usage of these methods,because the logic has changed.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to