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 ...@@ -681,10 +681,10 @@ INSERT INTO t1 VALUES
(REPEAT(0x1125,200000), REPEAT(0x1125,200000)), ('', ''), ('', ''); (REPEAT(0x1125,200000), REPEAT(0x1125,200000)), ('', ''), ('', '');
SELECT a FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll; SELECT a FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
Warnings: 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; SELECT b FROM t1 GROUP BY 1 LIMIT 1 INTO @nullll;
Warnings: 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; DROP TABLES t1;
End of 5.0 tests End of 5.0 tests
# #
......
...@@ -1919,7 +1919,7 @@ SELECT SUBSTRING(a,1,10), LENGTH(a), GROUP_CONCAT(b) FROM t1 GROUP BY a; ...@@ -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) SUBSTRING(a,1,10) LENGTH(a) GROUP_CONCAT(b)
1111111111 1300 one,two 1111111111 1300 one,two
Warnings: 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 EXPLAIN
SELECT SUBSTRING(a,1,10), LENGTH(a) FROM t1 GROUP BY a; SELECT SUBSTRING(a,1,10), LENGTH(a) FROM t1 GROUP BY a;
id 1 id 1
...@@ -1936,7 +1936,7 @@ SELECT SUBSTRING(a,1,10), LENGTH(a) FROM t1 GROUP BY a; ...@@ -1936,7 +1936,7 @@ SELECT SUBSTRING(a,1,10), LENGTH(a) FROM t1 GROUP BY a;
SUBSTRING(a,1,10) LENGTH(a) SUBSTRING(a,1,10) LENGTH(a)
1111111111 1300 1111111111 1300
Warnings: 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; DROP TABLE t1;
# #
# Bug#57688 Assertion `!table || (!table->write_set || bitmap_is_set(table->write_set, field # Bug#57688 Assertion `!table || (!table->write_set || bitmap_is_set(table->write_set, field
...@@ -2733,7 +2733,7 @@ f1 f2 ...@@ -2733,7 +2733,7 @@ f1 f2
NULL NULL
NULL NULL NULL NULL
Warnings: 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; SET @@sort_buffer_size = @old_sort_buff_size;
DROP TABLE t1; DROP TABLE t1;
# #
......
...@@ -860,7 +860,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxab ...@@ -860,7 +860,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxab
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxaa xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxaa
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxz xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxz
Warnings: 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; drop table t1;
create table t1 ( create table t1 (
`sid` decimal(8,0) default null, `sid` decimal(8,0) default null,
...@@ -4125,7 +4125,7 @@ a substr(b, @save_max_sort_length+1) ...@@ -4125,7 +4125,7 @@ a substr(b, @save_max_sort_length+1)
2 AB 2 AB
1 A 1 A
Warnings: 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 analyze format=json
select a, substr(b, @save_max_sort_length+1) from t1 order by b desc; select a, substr(b, @save_max_sort_length+1) from t1 order by b desc;
ANALYZE ANALYZE
...@@ -4172,7 +4172,7 @@ ANALYZE ...@@ -4172,7 +4172,7 @@ ANALYZE
} }
} }
Warnings: 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; drop table t1;
# #
# Packing sort keys with complex collations # Packing sort keys with complex collations
......
...@@ -835,7 +835,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ...@@ -835,7 +835,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxw xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxw
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxy xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxy
Warnings: 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; set max_sort_length=200;
select c from t1 order by c, id; select c from t1 order by c, id;
c c
......
...@@ -899,7 +899,7 @@ Warnings: ...@@ -899,7 +899,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat() Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat() Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 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; set @@group_concat_max_len = 256;
explain extended select left(a1,7), left(a2,7) explain extended select left(a1,7), left(a2,7)
from t1_1024 from t1_1024
...@@ -917,7 +917,7 @@ Warnings: ...@@ -917,7 +917,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat() Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat() Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 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; drop table t1_1024, t2_1024, t3_1024;
set @blob_len = 1025; set @blob_len = 1025;
set @suffix_len = @blob_len - @prefix_len; set @suffix_len = @blob_len - @prefix_len;
...@@ -1002,7 +1002,7 @@ Warnings: ...@@ -1002,7 +1002,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat() Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat() Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 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; set @@group_concat_max_len = 256;
explain extended select left(a1,7), left(a2,7) explain extended select left(a1,7), left(a2,7)
from t1_1025 from t1_1025
...@@ -1020,7 +1020,7 @@ Warnings: ...@@ -1020,7 +1020,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat() Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat() Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 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; drop table t1_1025, t2_1025, t3_1025;
create table t1bit (a1 bit(3), a2 bit(3)); create table t1bit (a1 bit(3), a2 bit(3));
create table t2bit (b1 bit(3), b2 bit(3)); create table t2bit (b1 bit(3), b2 bit(3));
......
...@@ -919,7 +919,7 @@ Warnings: ...@@ -919,7 +919,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat() Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat() Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 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; set @@group_concat_max_len = 256;
explain extended select left(a1,7), left(a2,7) explain extended select left(a1,7), left(a2,7)
from t1_1024 from t1_1024
...@@ -938,7 +938,7 @@ Warnings: ...@@ -938,7 +938,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat() Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat() Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 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; drop table t1_1024, t2_1024, t3_1024;
set @blob_len = 1025; set @blob_len = 1025;
set @suffix_len = @blob_len - @prefix_len; set @suffix_len = @blob_len - @prefix_len;
...@@ -1024,7 +1024,7 @@ Warnings: ...@@ -1024,7 +1024,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat() Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat() Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 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; set @@group_concat_max_len = 256;
explain extended select left(a1,7), left(a2,7) explain extended select left(a1,7), left(a2,7)
from t1_1025 from t1_1025
...@@ -1043,7 +1043,7 @@ Warnings: ...@@ -1043,7 +1043,7 @@ Warnings:
Warning 1260 Row 1 was cut by group_concat() Warning 1260 Row 1 was cut by group_concat()
Warning 1260 Row 2 was cut by group_concat() Warning 1260 Row 2 was cut by group_concat()
Warning 1260 Row 3 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; drop table t1_1025, t2_1025, t3_1025;
create table t1bit (a1 bit(3), a2 bit(3)); create table t1bit (a1 bit(3), a2 bit(3));
create table t2bit (b1 bit(3), b2 bit(3)); create table t2bit (b1 bit(3), b2 bit(3));
......
...@@ -768,7 +768,7 @@ col_1_text = REPEAT("क", 4000) ...@@ -768,7 +768,7 @@ col_1_text = REPEAT("क", 4000)
1 1
0 0
Warnings: 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; DROP TABLE worklog5743;
CREATE TABLE worklog5743 ( CREATE TABLE worklog5743 (
col_1_text TEXT(4000) , col_2_text TEXT(4000) , col_1_text TEXT(4000) , col_2_text TEXT(4000) ,
......
...@@ -92,7 +92,7 @@ x left(b, 10) left(v, 10) ...@@ -92,7 +92,7 @@ x left(b, 10) left(v, 10)
50 zzzzzzzzzz zzzzzzzzzz 50 zzzzzzzzzz zzzzzzzzzz
56 zzzzzzzzzz zzzzzzzzzz 56 zzzzzzzzzz zzzzzzzzzz
Warnings: 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; update t1 set b= 'bar' where v > 'a' limit 20;
drop table t1; drop table t1;
# Cover return_top_record() in ha_partition::handle_ordered_index_scan() # 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) ...@@ -258,7 +258,7 @@ x left(y, 4) length(y) check_row(row_start, row_end)
1 LONG 8192 HISTORICAL ROW 1 LONG 8192 HISTORICAL ROW
2 LONG 8192 CURRENT ROW 2 LONG 8192 CURRENT ROW
Warnings: 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'; 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; 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) 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) ...@@ -266,7 +266,7 @@ x left(y, 4) length(y) check_row(row_start, row_end)
2 LONG 8192 HISTORICAL ROW 2 LONG 8192 HISTORICAL ROW
2 SHOR 5 CURRENT ROW 2 SHOR 5 CURRENT ROW
Warnings: 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; drop tables t1;
### Issue tempesta-tech/mariadb#365, bug 7 (duplicate of historical row) ### Issue tempesta-tech/mariadb#365, bug 7 (duplicate of historical row)
create or replace table t1 (a int primary key, b int) 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