We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
现象: 4.0.0-RC1版本,当我插入的数据中,有一个字段是null的时候,自动生成的主键id赋值到了其他字段。例如我要插入INSERT INTO user (name, remark, age) VALUES ("test", null, 18),经过sharding处理之后变成了INSERT INTO user (name, remark, age, id) VALUES ("test", 18, "自动生成的主键id", null)
分析: InsertOptimizeResultUnit类中的getCurrentIndex方法有问题,当获取当前index下标的时候判断有问题。这里感觉不需要在重新计算一次当前下表了,根据前面的字段数量即可知道当前下标量了
The text was updated successfully, but these errors were encountered:
For English only, other languages will not accept.
Sorry, something went wrong.
No branches or pull requests
现象:
4.0.0-RC1版本,当我插入的数据中,有一个字段是null的时候,自动生成的主键id赋值到了其他字段。例如我要插入INSERT INTO user (name, remark, age) VALUES ("test", null, 18),经过sharding处理之后变成了INSERT INTO user (name, remark, age, id) VALUES ("test", 18, "自动生成的主键id", null)
分析:
InsertOptimizeResultUnit类中的getCurrentIndex方法有问题,当获取当前index下标的时候判断有问题。这里感觉不需要在重新计算一次当前下表了,根据前面的字段数量即可知道当前下标量了
The text was updated successfully, but these errors were encountered: