[FATAL] [lib.rs:479] ["range end index 3 out of range for slice of length 1"]
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
```sql
CREATE TABLE t1 (c1 LONGTEXT);
INSERT INTO t1 (c1) VALUES ('z');
SELECT c1 FROM t1 WHERE CHAR(226 USING latin1) NOT LIKE c1; -- crash
```
### 2. What did you expect to see? (Required)
Executed without crash.
### 3. What did you see instead (Required)
A fatal error happened.
### 4. What is your TiDB version? (Required)
Release Version: v8.5.1
Edition: Community
Git Commit Hash: fea86c8e35ad4a86a5e1160701f99493c2ee547c
Git Branch: HEAD
UTC Build Time: 2025-01-16 07:40:13
GoVersion: go1.23.2
Race Enabled: false
Check Table Before Drop: false
Store: tikv
Contributor guide
Assessment
This issue has not been assessed yet.