Tidb as the backend of proxysql. The query result is incorrect #35946
Labels
affects-5.4
This bug affects 5.4.x versions.
affects-6.0
duplicate
Issues or pull requests already exists.
fixes-6.1.0
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
不同where条件加上括号后的sql 查询结果一样。
1.同一个链接;
2.代码里sql预处理语句
3.判断条件key是主键
4.where判断条件是括号括起来的 WHERE (id = ?)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
第一组返回 是判断条件为id(主键)值不同加括号返回的结果是相同的
第二组返回 是判断条件为num(非主键)值不同返回的结果是不同的
4. What is your TiDB version? (Required)
tidb v5.4.1 , proxysql v2.4.1
5. 排查过程
看起来是tidb的bug
The text was updated successfully, but these errors were encountered: