-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
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
JOIN 查询同一张表多次,副表数据错乱bug #781
Comments
断点调试下 AbstractSQLExecutor.execute 中对 JOIN 查到 ResultSet 后分离 主、副 表数据的处理 如果这里没问题,也可能是后面对 User:a 生成的缓存 SQL 与对 User:b 生成的缓存 SQL 一致,导致 AbstractSQLExecuto.getCacheItem 取错了 |
也可以先升级到 7.0.3/6.4.3 等更高版本后试试 |
也可以先把驼峰转换去掉后试试还有没有同样问题,看看是不是自己的改动导致 |
升级版本暂时不能升级的 |
驼峰转换去除后还是有问题的 |
是缓存取错了,但是暂时没有太好的方案处理,如果去掉缓存会导致n+1查询 |
把具体的相关代码调试截屏发出来,这样纯文本的一问一答很低效,我也没时间去猜各种可能 |
Description
APIJSON Version/APIJSON 版本号
6.3.0
Database Type & Version/数据库类型及版本号
mysql8
如图,JOIN 查询同一张表多次,副表数据错乱bug,explain执行计划打印的SQL是对的,但是副表的数据不对
The text was updated successfully, but these errors were encountered: