Commit d732c70c authored by Igor Babaev's avatar Igor Babaev

Merge from 5.2-dsmrr

parents 408c33e6 1133c6f6
...@@ -318,7 +318,7 @@ filler char(10), key(d), primary key (a,b,c)) engine= innodb; ...@@ -318,7 +318,7 @@ filler char(10), key(d), primary key (a,b,c)) engine= innodb;
insert into t2 select A.a, B.a, B.a, A.a, 'filler' from t1 A, t1 B; insert into t2 select A.a, B.a, B.a, A.a, 'filler' from t1 A, t1 B;
explain select * from t2 force index (d) where d < 10; explain select * from t2 force index (d) where d < 10;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t2 range d d 5 NULL 47 Using index condition; Using MRR 1 SIMPLE t2 range d d 5 NULL 53 Using index condition; Using MRR
drop table t2; drop table t2;
drop table t1; drop table t1;
set @@read_rnd_buffer_size= @read_rnd_buffer_size_save; set @@read_rnd_buffer_size= @read_rnd_buffer_size_save;
......
...@@ -207,6 +207,7 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -207,6 +207,7 @@ id select_type table type possible_keys key key_len ref rows Extra
Warnings: Warnings:
Warning 1292 Incorrect date value: '0000-00-00' for column 'a' at row 1 Warning 1292 Incorrect date value: '0000-00-00' for column 'a' at row 1
Warning 1292 Incorrect date value: '0000-00-00' for column 'a' at row 1 Warning 1292 Incorrect date value: '0000-00-00' for column 'a' at row 1
Warning 1265 Data truncated for column 'a' at row 1
SELECT * FROM t1 WHERE a = '0000-00-00'; SELECT * FROM t1 WHERE a = '0000-00-00';
a a
0000-00-00 0000-00-00
...@@ -214,6 +215,7 @@ a ...@@ -214,6 +215,7 @@ a
Warnings: Warnings:
Warning 1292 Incorrect date value: '0000-00-00' for column 'a' at row 1 Warning 1292 Incorrect date value: '0000-00-00' for column 'a' at row 1
Warning 1292 Incorrect date value: '0000-00-00' for column 'a' at row 1 Warning 1292 Incorrect date value: '0000-00-00' for column 'a' at row 1
Warning 1265 Data truncated for column 'a' at row 1
SELECT * FROM t2 WHERE a = '0000-00-00'; SELECT * FROM t2 WHERE a = '0000-00-00';
a a
0000-00-00 0000-00-00
...@@ -245,6 +247,7 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -245,6 +247,7 @@ id select_type table type possible_keys key key_len ref rows Extra
Warnings: Warnings:
Warning 1292 Incorrect date value: '1000-00-00' for column 'a' at row 1 Warning 1292 Incorrect date value: '1000-00-00' for column 'a' at row 1
Warning 1292 Incorrect date value: '1000-00-00' for column 'a' at row 1 Warning 1292 Incorrect date value: '1000-00-00' for column 'a' at row 1
Warning 1265 Data truncated for column 'a' at row 1
SELECT * FROM t1 WHERE a = '1000-00-00'; SELECT * FROM t1 WHERE a = '1000-00-00';
a a
1000-00-00 1000-00-00
...@@ -252,6 +255,7 @@ a ...@@ -252,6 +255,7 @@ a
Warnings: Warnings:
Warning 1292 Incorrect date value: '1000-00-00' for column 'a' at row 1 Warning 1292 Incorrect date value: '1000-00-00' for column 'a' at row 1
Warning 1292 Incorrect date value: '1000-00-00' for column 'a' at row 1 Warning 1292 Incorrect date value: '1000-00-00' for column 'a' at row 1
Warning 1265 Data truncated for column 'a' at row 1
SELECT * FROM t2 WHERE a = '1000-00-00'; SELECT * FROM t2 WHERE a = '1000-00-00';
a a
1000-00-00 1000-00-00
......
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