Query result may miss rows that end with space when use like
with _
to do index range scan on PAD SPACE column
#48983
Labels
affects-6.0
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.2
affects-6.3
affects-6.4
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-6.6
affects-7.0
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.2
affects-7.3
affects-7.4
affects-7.5
This bug affects the 7.5.x(LTS) versions.
severity/critical
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
This bug is related to the same mechanism as #48821, which is the behavior that trailing space will be trimmed in the stored index key on PAD SPACE column, but this bug is caused by another place in the code.
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
From MySQL:
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
From v6.0.0 to latest master
The text was updated successfully, but these errors were encountered: