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

   When call `next` method, 
   ```java
   public final boolean next() {
       if (rows.hasNext()) {
           currentRow = rows.next();
           rowCount--;
           return true;
       }
      // when rows.hasNext() is false, this line will set currentRow = null and 
`wasNull()` method will return true before,but return false now.
       currentRow = null;
       return false;
   }
   ```
   
   when rows.hasNext() is false, this line will set currentRow = null and 
`wasNull()` method will return true before,but return false now.
   
   wasNull method before:
   ```java
     public final boolean wasNull() {
        // return true;
         return null == currentRow;
     }
   ```
   
   wasNull method now:
   ```java
     public final boolean wasNull() {
             // return false;
         return wasNull;
     }
   ```


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