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 2020/05/27 04:02:53 UTC

[GitHub] [shardingsphere] wangjing112 opened a new issue #5803: error in MySQLNullBitmap cause result wrong when more then one NULL fields.

wangjing112 opened a new issue #5803:
URL: https://github.com/apache/shardingsphere/issues/5803


   direct show the wrong code in class:org.apache.shardingsphere.db.protocol.mysql.packet.command.query.binary.execute.MySQLNullBitmap
   
   `
   
       /**
        * Set null bit.
        *
        * @param index column index
        */
       public void setNullBit(final int index) {
           nullBitmap[getBytePosition(index)] = 1 << getBitPosition(index);
       }
   `
   
   in mysql protocal :https://dev.mysql.com/doc/internals/en/null-bitmap.html
   `
   nulls[byte_pos] |= 1 << bit_pos
   `
   
   so the right is:
   `
   
       public void setNullBit(final int index) {
           nullBitmap[getBytePosition(index)] |= 1 << getBitPosition(index);
       }
   `
   
   this is reason issue #4707 


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



[GitHub] [shardingsphere] kimmking commented on issue #5803: error in MySQLNullBitmap cause result wrong when more then one NULL fields.

Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #5803:
URL: https://github.com/apache/shardingsphere/issues/5803#issuecomment-634002828


   do you want to fix it?
   


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



[GitHub] [shardingsphere] terrymanu closed issue #5803: error in MySQLNullBitmap cause result wrong when more then one NULL fields.

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #5803:
URL: https://github.com/apache/shardingsphere/issues/5803


   


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



[GitHub] [shardingsphere] tuohai666 commented on issue #5803: error in MySQLNullBitmap cause result wrong when more then one NULL fields.

Posted by GitBox <gi...@apache.org>.
tuohai666 commented on issue #5803:
URL: https://github.com/apache/shardingsphere/issues/5803#issuecomment-639368580


   @wangjing112  I believe you have spent much time to find the root cause. Thanks for your effort.


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