Commit b7063e43 authored by Sergei Golubchik's avatar Sergei Golubchik

update tests max_sort_length

parent d1f45fc9
......@@ -681,10 +681,10 @@ INSERT INTO t1 VALUES
(REPEAT(0x1125,200000), REPEAT(0x1125,200000)), ('', ''), ('', '');
SELECT a FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
Warnings:
Warning 4201 1 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 1 values were longer than max_sort_length. Sorting used only the first 1024 bytes
SELECT b FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
Warnings:
Warning 4201 1 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 1 values were longer than max_sort_length. Sorting used only the first 1024 bytes
DROP TABLES t1;
End of 5.0 tests
#
......
......@@ -1919,7 +1919,7 @@ SELECT SUBSTRING(a,1,10), LENGTH(a), GROUP_CONCAT(b) FROM t1 GROUP BY a;
SUBSTRING(a,1,10) LENGTH(a) GROUP_CONCAT(b)
1111111111 1300 one,two
Warnings:
Warning 4201 2 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 2 values were longer than max_sort_length. Sorting used only the first 1024 bytes
EXPLAIN
SELECT SUBSTRING(a,1,10), LENGTH(a) FROM t1 GROUP BY a;
id 1
......@@ -1936,7 +1936,7 @@ SELECT SUBSTRING(a,1,10), LENGTH(a) FROM t1 GROUP BY a;
SUBSTRING(a,1,10) LENGTH(a)
1111111111 1300
Warnings:
Warning 4201 1 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 1 values were longer than max_sort_length. Sorting used only the first 1024 bytes
DROP TABLE t1;
#
# Bug#57688 Assertion `!table || (!table->write_set || bitmap_is_set(table->write_set, field
......@@ -2733,7 +2733,7 @@ f1 f2
NULL
NULL NULL
Warnings:
Warning 4201 116 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 116 values were longer than max_sort_length. Sorting used only the first 1024 bytes
SET @@sort_buffer_size = @old_sort_buff_size;
DROP TABLE t1;
#
......
......@@ -860,7 +860,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxab
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxaa
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxz
Warnings:
Warning 4201 2 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 2 values were longer than max_sort_length. Sorting used only the first 64 bytes
drop table t1;
create table t1 (
`sid` decimal(8,0) default null,
......@@ -4125,7 +4125,7 @@ a substr(b, @save_max_sort_length+1)
2 AB
1 A
Warnings:
Warning 4201 5 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 5 values were longer than max_sort_length. Sorting used only the first 1024 bytes
analyze format=json
select a, substr(b, @save_max_sort_length+1) from t1 order by b desc;
ANALYZE
......@@ -4172,7 +4172,7 @@ ANALYZE
}
}
Warnings:
Warning 4201 5 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 5 values were longer than max_sort_length. Sorting used only the first 1024 bytes
drop table t1;
#
# Packing sort keys with complex collations
......
......@@ -835,7 +835,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxw
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxy
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
set max_sort_length=200;
select c from t1 order by c, id;
c
......
......@@ -899,7 +899,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 was cut by group_concat()
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
set @@group_concat_max_len = 256;
explain extended select left(a1,7), left(a2,7)
from t1_1024
......@@ -917,7 +917,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 was cut by group_concat()
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
drop table t1_1024, t2_1024, t3_1024;
set @blob_len = 1025;
set @suffix_len = @blob_len - @prefix_len;
......@@ -1002,7 +1002,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 was cut by group_concat()
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
set @@group_concat_max_len = 256;
explain extended select left(a1,7), left(a2,7)
from t1_1025
......@@ -1020,7 +1020,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 was cut by group_concat()
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
drop table t1_1025, t2_1025, t3_1025;
create table t1bit (a1 bit(3), a2 bit(3));
create table t2bit (b1 bit(3), b2 bit(3));
......
......@@ -919,7 +919,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 was cut by group_concat()
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
set @@group_concat_max_len = 256;
explain extended select left(a1,7), left(a2,7)
from t1_1024
......@@ -938,7 +938,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 was cut by group_concat()
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
drop table t1_1024, t2_1024, t3_1024;
set @blob_len = 1025;
set @suffix_len = @blob_len - @prefix_len;
......@@ -1024,7 +1024,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 was cut by group_concat()
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
set @@group_concat_max_len = 256;
explain extended select left(a1,7), left(a2,7)
from t1_1025
......@@ -1043,7 +1043,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 was cut by group_concat()
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 1024 bytes
drop table t1_1025, t2_1025, t3_1025;
create table t1bit (a1 bit(3), a2 bit(3));
create table t2bit (b1 bit(3), b2 bit(3));
......
......@@ -768,7 +768,7 @@ col_1_text = REPEAT("क", 4000)
1
0
Warnings:
Warning 4201 2 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 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) ,
......
......@@ -40,7 +40,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsy
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Warnings:
Warning 4201 6 values were longer than max_sort_length. Sorting used only the first 69 bytes
Warning 4203 6 values were longer than max_sort_length. Sorting used only the first 69 bytes
** Results should be sorted **
'#--------------------FN_DYNVARS_098_02-------------------------#'
connect test_con2,localhost,root,,;
......@@ -94,7 +94,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxrx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsy
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgw
Warnings:
Warning 4201 16 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 16 values were longer than max_sort_length. Sorting used only the first 64 bytes
** Results should not be sorted **
'#--------------------FN_DYNVARS_098_03-------------------------#'
SET max_sort_length=64;
......@@ -125,7 +125,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxrx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsy
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgw
Warnings:
Warning 4201 20 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 20 values were longer than max_sort_length. Sorting used only the first 64 bytes
** Results should not be sorted **
RESET QUERY CACHE;
'#--------------------FN_DYNVARS_098_04-------------------------#'
......@@ -153,7 +153,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Warnings:
Warning 4201 15 values were longer than max_sort_length. Sorting used only the first 69 bytes
Warning 4203 15 values were longer than max_sort_length. Sorting used only the first 69 bytes
** Results should be sorted **
'#--------------------FN_DYNVARS_098_05-------------------------#'
SET max_sort_length=70;
......@@ -225,7 +225,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgw
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsy
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxrx
Warnings:
Warning 4201 4 values were longer than max_sort_length. Sorting used only the first 70 bytes
Warning 4203 4 values were longer than max_sort_length. Sorting used only the first 70 bytes
** Results should be sorted **
SET @@session.max_sort_length = 64;
SELECT @@session.max_sort_length;
......@@ -246,7 +246,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxrx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsy
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgw
Warnings:
Warning 4201 8 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 8 values were longer than max_sort_length. Sorting used only the first 64 bytes
** Results should not be sorted **
'#--------------------FN_DYNVARS_098_08-------------------------#'
Testing type CHAR
......@@ -265,7 +265,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxrx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsy
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgw
Warnings:
Warning 4201 4 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 4 values were longer than max_sort_length. Sorting used only the first 64 bytes
** Results should not be sorted **
SET @@session.max_sort_length = 64;
SELECT @@session.max_sort_length;
......@@ -286,7 +286,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxrx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsy
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgw
Warnings:
Warning 4201 8 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 8 values were longer than max_sort_length. Sorting used only the first 64 bytes
** Results should not be sorted **
DROP TABLE t, t1, t2;
#
......@@ -308,7 +308,7 @@ StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrzzz
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStryyy
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrxxx
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 70 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 70 bytes
# Make sure there are warnings when a string function is used:
select a from t1 order by coalesce(a);
a
......@@ -318,7 +318,7 @@ StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrzzz
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStryyy
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrxxx
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 70 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 70 bytes
select a from t1 order by concat(a, '1');
a
ShortStr1
......@@ -327,7 +327,7 @@ StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrzzz
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStryyy
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrxxx
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 70 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 70 bytes
select a from t1 order by binary(a);
a
ShortStr1
......@@ -336,7 +336,7 @@ StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrzzz
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStryyy
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrStrxxx
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 70 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 70 bytes
# Table having a variable-length string field and UTF16 encoding (2 bytes per char):
create table t2(a varchar(100)) character set 'utf16';
insert into t2 values
......@@ -353,7 +353,7 @@ StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrzzz
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStryyy
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrxxx
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
# Table having text blobs
create table t3(a text, b mediumtext, c longtext) character set 'utf16';
insert into t3 values
......@@ -370,7 +370,7 @@ TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText888 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium88 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong88
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText777 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium77 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong77
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
select * from t3 order by b desc;
a b c
shortString51 short777 short897
......@@ -379,7 +379,7 @@ TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText888 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium88 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong88
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText777 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium77 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong77
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
select * from t3 order by coalesce(b) desc;
a b c
shortString51 short777 short897
......@@ -388,7 +388,7 @@ TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText888 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium88 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong88
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText777 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium77 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong77
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
select * from t3 order by c;
a b c
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText999 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium99 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong99
......@@ -397,7 +397,7 @@ TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText
shortString89 short123 short456
shortString51 short777 short897
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
select * from t3 order by c, a desc;
a b c
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText999 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium99 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong99
......@@ -406,7 +406,7 @@ TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText
shortString89 short123 short456
shortString51 short777 short897
Warnings:
Warning 4201 6 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 6 values were longer than max_sort_length. Sorting used only the first 64 bytes
# Packing of sort keys will be applied here:
select * from t3 order by a, c, b;
a b c
......@@ -416,7 +416,7 @@ TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText888 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium88 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong88
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText777 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium77 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong77
Warnings:
Warning 4201 9 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 9 values were longer than max_sort_length. Sorting used only the first 64 bytes
select * from t3 order by a;
a b c
shortString51 short777 short897
......@@ -425,7 +425,7 @@ TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText888 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium88 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong88
TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText777 MediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMediumMedium77 LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong77
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
# Test a prepared statement re-execution (expecting warnings at both executions)
prepare stmt from "select * from t2 order by a";
execute stmt;
......@@ -436,7 +436,7 @@ StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrzzz
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStryyy
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrxxx
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
execute stmt;
a
shortString51
......@@ -445,7 +445,7 @@ StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrzzz
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStryyy
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrxxx
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
# Test a stored procedure
create procedure p1() select * from t2 order by a;
call p1();
......@@ -456,7 +456,7 @@ StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrzzz
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStryyy
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrxxx
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
call p1();
a
shortString51
......@@ -465,7 +465,7 @@ StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrzzz
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStryyy
StrStrStrStrStrStrStrStrStrStrStrStrStrStrStrxxx
Warnings:
Warning 4201 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 3 values were longer than max_sort_length. Sorting used only the first 64 bytes
drop procedure p1;
# Test a stored function
create function f1 () returns char(100) return (select a from t1 order by a limit 1);
......@@ -477,7 +477,7 @@ ShortStr1
ShortStr1
ShortStr1
Warnings:
Warning 4201 15 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 15 values were longer than max_sort_length. Sorting used only the first 64 bytes
# Test a view
create view v1 as select f1() as f1_res from t1 order by f1_res;
select * from v1;
......@@ -488,7 +488,7 @@ ShortStr1
ShortStr1
ShortStr1
Warnings:
Warning 4201 30 values were longer than max_sort_length. Sorting used only the first 64 bytes
Warning 4203 30 values were longer than max_sort_length. Sorting used only the first 64 bytes
drop function f1;
drop view v1;
drop table t1, t2, t3;
......
......@@ -92,7 +92,7 @@ x left(b, 10) left(v, 10)
50 zzzzzzzzzz zzzzzzzzzz
56 zzzzzzzzzz zzzzzzzzzz
Warnings:
Warning 4201 29 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 29 values were longer than max_sort_length. Sorting used only the first 1024 bytes
update t1 set b= 'bar' where v > 'a' limit 20;
drop table t1;
# Cover return_top_record() in ha_partition::handle_ordered_index_scan()
......
......@@ -258,7 +258,7 @@ x left(y, 4) length(y) check_row(row_start, row_end)
1 LONG 8192 HISTORICAL ROW
2 LONG 8192 CURRENT ROW
Warnings:
Warning 4201 2 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 2 values were longer than max_sort_length. Sorting used only the first 1024 bytes
update t1 set y= 'SHORT';
select x, left(y, 4), length(y), check_row(row_start, row_end) from t1 for system_time all order by x, y;
x left(y, 4) length(y) check_row(row_start, row_end)
......@@ -266,7 +266,7 @@ x left(y, 4) length(y) check_row(row_start, row_end)
2 LONG 8192 HISTORICAL ROW
2 SHOR 5 CURRENT ROW
Warnings:
Warning 4201 2 values were longer than max_sort_length. Sorting used only the first 1024 bytes
Warning 4203 2 values were longer than max_sort_length. Sorting used only the first 1024 bytes
drop tables t1;
### Issue tempesta-tech/mariadb#365, bug 7 (duplicate of historical row)
create or replace table t1 (a int primary key, b int)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment