mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0
into production.mysql.com:/usersnfs/rkalimullin/mysql-5.0
This commit is contained in:
@@ -1281,6 +1281,22 @@ id tid val
|
|||||||
42749 72 VOLN<4C> ADSL
|
42749 72 VOLN<4C> ADSL
|
||||||
44205 72 VOLN<4C> ADSL
|
44205 72 VOLN<4C> ADSL
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
create table t1(a char(200) collate utf8_unicode_ci NOT NULL default '')
|
||||||
|
default charset=utf8 collate=utf8_unicode_ci;
|
||||||
|
insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
|
||||||
|
explain select distinct a from t1;
|
||||||
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary
|
||||||
|
select distinct a from t1;
|
||||||
|
a
|
||||||
|
e
|
||||||
|
explain select a from t1 group by a;
|
||||||
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
|
||||||
|
select a from t1 group by a;
|
||||||
|
a
|
||||||
|
e
|
||||||
|
drop table t1;
|
||||||
CREATE TABLE t1(id varchar(20) NOT NULL) DEFAULT CHARSET=utf8;
|
CREATE TABLE t1(id varchar(20) NOT NULL) DEFAULT CHARSET=utf8;
|
||||||
INSERT INTO t1 VALUES ('xxx'), ('aa'), ('yyy'), ('aa');
|
INSERT INTO t1 VALUES ('xxx'), ('aa'), ('yyy'), ('aa');
|
||||||
SELECT id FROM t1;
|
SELECT id FROM t1;
|
||||||
|
@@ -1026,6 +1026,20 @@ ALTER TABLE t1 ADD KEY idx (tid,val(11));
|
|||||||
SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLN<4C> ADSL';
|
SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLN<4C> ADSL';
|
||||||
|
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug 20709: problem with utf8 fields in temporary tables
|
||||||
|
#
|
||||||
|
|
||||||
|
create table t1(a char(200) collate utf8_unicode_ci NOT NULL default '')
|
||||||
|
default charset=utf8 collate=utf8_unicode_ci;
|
||||||
|
insert into t1 values (unhex('65')), (unhex('C3A9')), (unhex('65'));
|
||||||
|
explain select distinct a from t1;
|
||||||
|
select distinct a from t1;
|
||||||
|
explain select a from t1 group by a;
|
||||||
|
select a from t1 group by a;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
# End of 4.1 tests
|
# End of 4.1 tests
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user