Bug #100008 | Comparimg chart length of trimed and not trim | ||
---|---|---|---|
Submitted: | 26 Jun 2020 13:06 | Modified: | 29 Jun 2020 13:05 |
Reporter: | Pedro da Costa | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S3 (Non-critical) |
Version: | 8.0.20 | OS: | Any (win 10 x64) |
Assigned to: | CPU Architecture: | x86 (ryzen 7) | |
Tags: | length character Compare trim |
[26 Jun 2020 13:06]
Pedro da Costa
[29 Jun 2020 13:05]
MySQL Verification Team
Hi Mr. de Costa, Thank you for your bug report. However, this is not a bug. If we list also the lengths of the stored values and trimmed stored values, you will see why is query result expected. You should read in our Reference Manual how are data stored in CHAR columns. This is the output: value1 test2 test3 value1 LENGTH(value1) LENGTH(TRIM(value1)) test 4 4 test1 5 5 test2 6 5 test3 6 5 Not a bug.