mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-27277 Add a warning when max_sort_length is reached
During a query execution some sorting and grouping operations on strings may be involved. System variable max_sort_length defines the maximum number of bytes to use when comparing strings during sorting/grouping. Thus, the comparable parts of strings may be less than their actual size, so the results of the query may be not sorted/grouped properly. To indicate that some comparisons were done on a truncated lengths, a new warning has been introduced with this commit.
This commit is contained in:
@@ -767,6 +767,8 @@ SELECT col_1_text = REPEAT("क", 4000) FROM worklog5743 ORDER BY col_1_text;
|
||||
col_1_text = REPEAT("क", 4000)
|
||||
1
|
||||
0
|
||||
Warnings:
|
||||
Warning 4202 2 values were longer than max_sort_length. Sorting used only the first 1024 bytes
|
||||
DROP TABLE worklog5743;
|
||||
CREATE TABLE worklog5743 (
|
||||
col_1_text TEXT(4000) , col_2_text TEXT(4000) ,
|
||||
|
Reference in New Issue
Block a user