mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Merge 10.0-base->10.0
This commit is contained in:
commit
9f4dd86c2e
27 changed files with 778 additions and 2 deletions
|
@ -13,3 +13,14 @@ delete from t1;
|
|||
insert into t1 values ('a'), ('a '), ('a\t');
|
||||
select collation(a),hex(a) from t1 order by a;
|
||||
drop table t1;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
--echo #
|
||||
SELECT @@collation_connection;
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
DROP TABLE t1;
|
||||
|
|
|
@ -103,6 +103,23 @@ big5_chinese_ci 6109
|
|||
big5_chinese_ci 61
|
||||
big5_chinese_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
big5_chinese_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
@ -250,6 +267,23 @@ big5_bin 6109
|
|||
big5_bin 61
|
||||
big5_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
big5_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
|
|
@ -263,6 +263,23 @@ cp1250_czech_cs 61
|
|||
cp1250_czech_cs 6109
|
||||
cp1250_czech_cs 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
cp1250_czech_cs
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
set global LC_MESSAGES=convert((@@global.log_bin_trust_function_creators)
|
||||
using cp1250);
|
||||
ERROR HY000: Unknown locale: '1'
|
||||
|
|
|
@ -9809,6 +9809,23 @@ eucjpms_japanese_ci 6109
|
|||
eucjpms_japanese_ci 61
|
||||
eucjpms_japanese_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
eucjpms_japanese_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
|
||||
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
|
||||
|
@ -9836,6 +9853,23 @@ eucjpms_bin 6109
|
|||
eucjpms_bin 61
|
||||
eucjpms_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
eucjpms_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
|
||||
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
|
||||
|
|
|
@ -103,6 +103,23 @@ euckr_korean_ci 6109
|
|||
euckr_korean_ci 61
|
||||
euckr_korean_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
euckr_korean_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
@ -170,6 +187,23 @@ euckr_bin 6109
|
|||
euckr_bin 61
|
||||
euckr_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
euckr_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
|
|
@ -103,6 +103,23 @@ gb2312_chinese_ci 6109
|
|||
gb2312_chinese_ci 61
|
||||
gb2312_chinese_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
gb2312_chinese_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
@ -251,6 +268,23 @@ gb2312_bin 6109
|
|||
gb2312_bin 61
|
||||
gb2312_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
gb2312_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
|
|
@ -103,6 +103,23 @@ gbk_chinese_ci 6109
|
|||
gbk_chinese_ci 61
|
||||
gbk_chinese_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
gbk_chinese_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
@ -251,6 +268,23 @@ gbk_bin 6109
|
|||
gbk_bin 61
|
||||
gbk_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
gbk_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
|
|
@ -318,6 +318,23 @@ latin1_swedish_ci 6109
|
|||
latin1_swedish_ci 61
|
||||
latin1_swedish_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
latin1_swedish_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
latin1_swedish_ci
|
||||
|
@ -365,6 +382,23 @@ latin1_bin 6109
|
|||
latin1_bin 61
|
||||
latin1_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
latin1_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
latin1_bin
|
||||
|
|
|
@ -326,6 +326,23 @@ latin1_german2_ci 6109
|
|||
latin1_german2_ci 61
|
||||
latin1_german2_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
latin1_german2_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
"BEGIN ctype_german.inc"
|
||||
drop table if exists t1;
|
||||
create table t1 as select repeat(' ', 64) as s1;
|
||||
|
|
|
@ -81,6 +81,23 @@ sjis_japanese_ci 6109
|
|||
sjis_japanese_ci 61
|
||||
sjis_japanese_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
sjis_japanese_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
@ -167,6 +184,23 @@ sjis_bin 6109
|
|||
sjis_bin 61
|
||||
sjis_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
sjis_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
|
|
@ -2947,6 +2947,23 @@ tis620_thai_ci 6109
|
|||
tis620_thai_ci 61
|
||||
tis620_thai_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
tis620_thai_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
tis620_thai_ci
|
||||
|
@ -3057,6 +3074,23 @@ tis620_bin 6109
|
|||
tis620_bin 61
|
||||
tis620_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
tis620_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
tis620_bin
|
||||
|
|
|
@ -5883,6 +5883,23 @@ utf8_unicode_ci 6109
|
|||
utf8_unicode_ci 61
|
||||
utf8_unicode_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8_unicode_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8_unicode_ci
|
||||
|
|
|
@ -744,6 +744,23 @@ ucs2_general_ci 00610009
|
|||
ucs2_general_ci 0061
|
||||
ucs2_general_ci 00610020
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
ucs2_general_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
ucs2_general_ci
|
||||
|
@ -925,6 +942,23 @@ ucs2_bin 00610009
|
|||
ucs2_bin 0061
|
||||
ucs2_bin 00610020
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
ucs2_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
ucs2_bin
|
||||
|
|
|
@ -2217,6 +2217,23 @@ ujis_japanese_ci 6109
|
|||
ujis_japanese_ci 61
|
||||
ujis_japanese_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
ujis_japanese_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
@ -2284,6 +2301,23 @@ ujis_bin 6109
|
|||
ujis_bin 61
|
||||
ujis_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
ujis_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
create table t1 engine=innodb select repeat('a',50) as c1;
|
||||
alter table t1 add index(c1(5));
|
||||
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
|
||||
|
|
|
@ -583,6 +583,23 @@ utf16_general_ci 00610009
|
|||
utf16_general_ci 0061
|
||||
utf16_general_ci 00610020
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf16_general_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf16_general_ci
|
||||
|
@ -613,6 +630,23 @@ utf16_bin 0061
|
|||
utf16_bin 00610020
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf16_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Bug#55980 Character sets: supplementary character _bin ordering is wrong
|
||||
#
|
||||
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
|
||||
|
|
|
@ -2857,6 +2857,23 @@ utf16_unicode_ci 00610009
|
|||
utf16_unicode_ci 0061
|
||||
utf16_unicode_ci 00610020
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf16_unicode_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf16_unicode_ci
|
||||
|
|
|
@ -627,6 +627,23 @@ utf16le_general_ci 61000900
|
|||
utf16le_general_ci 6100
|
||||
utf16le_general_ci 61002000
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf16le_general_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf16le_general_ci
|
||||
|
@ -656,6 +673,23 @@ utf16le_bin 6100
|
|||
utf16le_bin 61002000
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf16le_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Bug#55980 Character sets: supplementary character _bin ordering is wrong
|
||||
#
|
||||
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
|
||||
|
|
|
@ -582,6 +582,23 @@ utf32_general_ci 0000006100000009
|
|||
utf32_general_ci 00000061
|
||||
utf32_general_ci 0000006100000020
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf32_general_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf32_general_ci
|
||||
|
@ -612,6 +629,23 @@ utf32_bin 00000061
|
|||
utf32_bin 0000006100000020
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf32_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Bug#55980 Character sets: supplementary character _bin ordering is wrong
|
||||
#
|
||||
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
|
||||
|
|
|
@ -2857,6 +2857,23 @@ utf32_unicode_ci 0000006100000009
|
|||
utf32_unicode_ci 00000061
|
||||
utf32_unicode_ci 0000006100000020
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf32_unicode_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf32_unicode_ci
|
||||
|
|
|
@ -946,6 +946,23 @@ utf8_general_ci 6109
|
|||
utf8_general_ci 61
|
||||
utf8_general_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8_general_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8_general_ci
|
||||
|
@ -1109,6 +1126,23 @@ utf8_bin 6109
|
|||
utf8_bin 61
|
||||
utf8_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8_bin
|
||||
|
|
|
@ -946,6 +946,23 @@ utf8mb4_general_ci 6109
|
|||
utf8mb4_general_ci 61
|
||||
utf8mb4_general_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_general_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_general_ci
|
||||
|
@ -1091,6 +1108,23 @@ utf8mb4_bin 61
|
|||
utf8mb4_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Bug#55980 Character sets: supplementary character _bin ordering is wrong
|
||||
#
|
||||
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
|
||||
|
|
|
@ -885,6 +885,23 @@ utf8mb4_general_ci 6109
|
|||
utf8mb4_general_ci 61
|
||||
utf8mb4_general_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_general_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_general_ci
|
||||
|
@ -1029,6 +1046,23 @@ utf8mb4_bin 6109
|
|||
utf8mb4_bin 61
|
||||
utf8mb4_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_bin
|
||||
|
|
|
@ -946,6 +946,23 @@ utf8mb4_general_ci 6109
|
|||
utf8mb4_general_ci 61
|
||||
utf8mb4_general_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_general_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_general_ci
|
||||
|
@ -1090,6 +1107,23 @@ utf8mb4_bin 6109
|
|||
utf8mb4_bin 61
|
||||
utf8mb4_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_bin
|
||||
|
|
|
@ -946,6 +946,23 @@ utf8mb4_general_ci 6109
|
|||
utf8mb4_general_ci 61
|
||||
utf8mb4_general_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_general_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_general_ci
|
||||
|
@ -1090,6 +1107,23 @@ utf8mb4_bin 6109
|
|||
utf8mb4_bin 61
|
||||
utf8mb4_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
select @@collation_connection;
|
||||
@@collation_connection
|
||||
utf8mb4_bin
|
||||
|
|
|
@ -11418,6 +11418,23 @@ cp932_japanese_ci 6109
|
|||
cp932_japanese_ci 61
|
||||
cp932_japanese_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
cp932_japanese_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
|
||||
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
|
||||
|
@ -11445,6 +11462,23 @@ cp932_bin 6109
|
|||
cp932_bin 61
|
||||
cp932_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
cp932_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
|
||||
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
|
||||
|
|
|
@ -11418,6 +11418,23 @@ cp932_japanese_ci 6109
|
|||
cp932_japanese_ci 61
|
||||
cp932_japanese_ci 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
cp932_japanese_ci
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
|
||||
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
|
||||
|
@ -11445,6 +11462,23 @@ cp932_bin 6109
|
|||
cp932_bin 61
|
||||
cp932_bin 6120
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
|
||||
#
|
||||
SELECT @@collation_connection;
|
||||
@@collation_connection
|
||||
cp932_bin
|
||||
CREATE TABLE t1 (i INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
SELECT * FROM t1 GROUP BY MID(CURRENT_USER,0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
SELECT * FROM t1 GROUP BY MID('test',0) WITH ROLLUP;
|
||||
i
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 AS
|
||||
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
|
||||
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
|
||||
|
|
|
@ -4596,7 +4596,7 @@ my_strnxfrm_unicode(CHARSET_INFO *cs,
|
|||
MY_UNICASE_INFO *uni_plane= (cs->state & MY_CS_BINSORT) ?
|
||||
NULL : cs->caseinfo;
|
||||
LINT_INIT(wc);
|
||||
DBUG_ASSERT(src);
|
||||
DBUG_ASSERT(!srclen || src);
|
||||
|
||||
for (; dst < de && nweights; nweights--)
|
||||
{
|
||||
|
@ -4648,7 +4648,7 @@ my_strnxfrm_unicode_full_bin(CHARSET_INFO *cs,
|
|||
const uchar *se = src + srclen;
|
||||
|
||||
LINT_INIT(wc);
|
||||
DBUG_ASSERT(src);
|
||||
DBUG_ASSERT(!srclen || src);
|
||||
DBUG_ASSERT(cs->state & MY_CS_BINSORT);
|
||||
|
||||
for ( ; dst < de && nweights; nweights--)
|
||||
|
|
Loading…
Reference in a new issue