mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug #3403 Wrong encoding in EXPLAIN SELECT output
This commit is contained in:
@ -44,3 +44,12 @@ explain select count(*) from t1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
|
||||
drop table t1;
|
||||
set names koi8r;
|
||||
create table <20><><EFBFBD> (<28><><EFBFBD>0 int, <20><><EFBFBD>1 int, key <20><><EFBFBD>0 (<28><><EFBFBD>0), key <20><><EFBFBD>01 (<28><><EFBFBD>0,<2C><><EFBFBD>1));
|
||||
insert into <20><><EFBFBD> (<28><><EFBFBD>0) values (1);
|
||||
insert into <20><><EFBFBD> (<28><><EFBFBD>0) values (2);
|
||||
explain select <20><><EFBFBD>0 from <20><><EFBFBD> where <20><><EFBFBD>0=1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE <09><><EFBFBD> ref <09><><EFBFBD>0,<2C><><EFBFBD>01 <09><><EFBFBD>0 5 const 1 Using where; Using index
|
||||
drop table <20><><EFBFBD>;
|
||||
set names latin1;
|
||||
|
@ -30,3 +30,14 @@ explain select count(*) from t1;
|
||||
insert into t1 values(1);
|
||||
explain select count(*) from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug #3403 Wrong encoding in EXPLAIN SELECT output
|
||||
#
|
||||
set names koi8r;
|
||||
create table <20><><EFBFBD> (<28><><EFBFBD>0 int, <20><><EFBFBD>1 int, key <20><><EFBFBD>0 (<28><><EFBFBD>0), key <20><><EFBFBD>01 (<28><><EFBFBD>0,<2C><><EFBFBD>1));
|
||||
insert into <20><><EFBFBD> (<28><><EFBFBD>0) values (1);
|
||||
insert into <20><><EFBFBD> (<28><><EFBFBD>0) values (2);
|
||||
explain select <20><><EFBFBD>0 from <20><><EFBFBD> where <20><><EFBFBD>0=1;
|
||||
drop table <20><><EFBFBD>;
|
||||
set names latin1;
|
||||
|
Reference in New Issue
Block a user