Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9f4dd86c
Commit
9f4dd86c
authored
Dec 17, 2013
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.0-base->10.0
parents
71f4a24d
768751c7
Changes
27
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
778 additions
and
2 deletions
+778
-2
mysql-test/include/ctype_filesort.inc
mysql-test/include/ctype_filesort.inc
+11
-0
mysql-test/r/ctype_big5.result
mysql-test/r/ctype_big5.result
+34
-0
mysql-test/r/ctype_cp1250_ch.result
mysql-test/r/ctype_cp1250_ch.result
+17
-0
mysql-test/r/ctype_eucjpms.result
mysql-test/r/ctype_eucjpms.result
+34
-0
mysql-test/r/ctype_euckr.result
mysql-test/r/ctype_euckr.result
+34
-0
mysql-test/r/ctype_gb2312.result
mysql-test/r/ctype_gb2312.result
+34
-0
mysql-test/r/ctype_gbk.result
mysql-test/r/ctype_gbk.result
+34
-0
mysql-test/r/ctype_latin1.result
mysql-test/r/ctype_latin1.result
+34
-0
mysql-test/r/ctype_latin1_de.result
mysql-test/r/ctype_latin1_de.result
+17
-0
mysql-test/r/ctype_sjis.result
mysql-test/r/ctype_sjis.result
+34
-0
mysql-test/r/ctype_tis620.result
mysql-test/r/ctype_tis620.result
+34
-0
mysql-test/r/ctype_uca.result
mysql-test/r/ctype_uca.result
+17
-0
mysql-test/r/ctype_ucs.result
mysql-test/r/ctype_ucs.result
+34
-0
mysql-test/r/ctype_ujis.result
mysql-test/r/ctype_ujis.result
+34
-0
mysql-test/r/ctype_utf16.result
mysql-test/r/ctype_utf16.result
+34
-0
mysql-test/r/ctype_utf16_uca.result
mysql-test/r/ctype_utf16_uca.result
+17
-0
mysql-test/r/ctype_utf16le.result
mysql-test/r/ctype_utf16le.result
+34
-0
mysql-test/r/ctype_utf32.result
mysql-test/r/ctype_utf32.result
+34
-0
mysql-test/r/ctype_utf32_uca.result
mysql-test/r/ctype_utf32_uca.result
+17
-0
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+34
-0
mysql-test/r/ctype_utf8mb4.result
mysql-test/r/ctype_utf8mb4.result
+34
-0
mysql-test/r/ctype_utf8mb4_heap.result
mysql-test/r/ctype_utf8mb4_heap.result
+34
-0
mysql-test/r/ctype_utf8mb4_innodb.result
mysql-test/r/ctype_utf8mb4_innodb.result
+34
-0
mysql-test/r/ctype_utf8mb4_myisam.result
mysql-test/r/ctype_utf8mb4_myisam.result
+34
-0
mysql-test/suite/binlog/r/binlog_row_ctype_cp932.result
mysql-test/suite/binlog/r/binlog_row_ctype_cp932.result
+34
-0
mysql-test/suite/binlog/r/binlog_stm_ctype_cp932.result
mysql-test/suite/binlog/r/binlog_stm_ctype_cp932.result
+34
-0
strings/ctype-utf8.c
strings/ctype-utf8.c
+2
-2
No files found.
mysql-test/include/ctype_filesort.inc
View file @
9f4dd86c
...
@@ -13,3 +13,14 @@ delete from t1;
...
@@ -13,3 +13,14 @@ delete from t1;
insert
into
t1
values
(
'a'
),
(
'a '
),
(
'a\t'
);
insert
into
t1
values
(
'a'
),
(
'a '
),
(
'a\t'
);
select
collation
(
a
),
hex
(
a
)
from
t1
order
by
a
;
select
collation
(
a
),
hex
(
a
)
from
t1
order
by
a
;
drop
table
t1
;
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
;
mysql-test/r/ctype_big5.result
View file @
9f4dd86c
...
@@ -103,6 +103,23 @@ big5_chinese_ci 6109
...
@@ -103,6 +103,23 @@ big5_chinese_ci 6109
big5_chinese_ci 61
big5_chinese_ci 61
big5_chinese_ci 6120
big5_chinese_ci 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
@@ -250,6 +267,23 @@ big5_bin 6109
...
@@ -250,6 +267,23 @@ big5_bin 6109
big5_bin 61
big5_bin 61
big5_bin 6120
big5_bin 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
...
mysql-test/r/ctype_cp1250_ch.result
View file @
9f4dd86c
...
@@ -263,6 +263,23 @@ cp1250_czech_cs 61
...
@@ -263,6 +263,23 @@ cp1250_czech_cs 61
cp1250_czech_cs 6109
cp1250_czech_cs 6109
cp1250_czech_cs 6120
cp1250_czech_cs 6120
drop table t1;
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)
set global LC_MESSAGES=convert((@@global.log_bin_trust_function_creators)
using cp1250);
using cp1250);
ERROR HY000: Unknown locale: '1'
ERROR HY000: Unknown locale: '1'
...
...
mysql-test/r/ctype_eucjpms.result
View file @
9f4dd86c
...
@@ -9809,6 +9809,23 @@ eucjpms_japanese_ci 6109
...
@@ -9809,6 +9809,23 @@ eucjpms_japanese_ci 6109
eucjpms_japanese_ci 61
eucjpms_japanese_ci 61
eucjpms_japanese_ci 6120
eucjpms_japanese_ci 6120
drop table t1;
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
CREATE TABLE t1 AS
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
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);
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
...
@@ -9836,6 +9853,23 @@ eucjpms_bin 6109
...
@@ -9836,6 +9853,23 @@ eucjpms_bin 6109
eucjpms_bin 61
eucjpms_bin 61
eucjpms_bin 6120
eucjpms_bin 6120
drop table t1;
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
CREATE TABLE t1 AS
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
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);
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
...
...
mysql-test/r/ctype_euckr.result
View file @
9f4dd86c
...
@@ -103,6 +103,23 @@ euckr_korean_ci 6109
...
@@ -103,6 +103,23 @@ euckr_korean_ci 6109
euckr_korean_ci 61
euckr_korean_ci 61
euckr_korean_ci 6120
euckr_korean_ci 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
@@ -170,6 +187,23 @@ euckr_bin 6109
...
@@ -170,6 +187,23 @@ euckr_bin 6109
euckr_bin 61
euckr_bin 61
euckr_bin 6120
euckr_bin 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
...
mysql-test/r/ctype_gb2312.result
View file @
9f4dd86c
...
@@ -103,6 +103,23 @@ gb2312_chinese_ci 6109
...
@@ -103,6 +103,23 @@ gb2312_chinese_ci 6109
gb2312_chinese_ci 61
gb2312_chinese_ci 61
gb2312_chinese_ci 6120
gb2312_chinese_ci 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
@@ -251,6 +268,23 @@ gb2312_bin 6109
...
@@ -251,6 +268,23 @@ gb2312_bin 6109
gb2312_bin 61
gb2312_bin 61
gb2312_bin 6120
gb2312_bin 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
...
mysql-test/r/ctype_gbk.result
View file @
9f4dd86c
...
@@ -103,6 +103,23 @@ gbk_chinese_ci 6109
...
@@ -103,6 +103,23 @@ gbk_chinese_ci 6109
gbk_chinese_ci 61
gbk_chinese_ci 61
gbk_chinese_ci 6120
gbk_chinese_ci 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
@@ -251,6 +268,23 @@ gbk_bin 6109
...
@@ -251,6 +268,23 @@ gbk_bin 6109
gbk_bin 61
gbk_bin 61
gbk_bin 6120
gbk_bin 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
...
mysql-test/r/ctype_latin1.result
View file @
9f4dd86c
...
@@ -318,6 +318,23 @@ latin1_swedish_ci 6109
...
@@ -318,6 +318,23 @@ latin1_swedish_ci 6109
latin1_swedish_ci 61
latin1_swedish_ci 61
latin1_swedish_ci 6120
latin1_swedish_ci 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
latin1_swedish_ci
latin1_swedish_ci
...
@@ -365,6 +382,23 @@ latin1_bin 6109
...
@@ -365,6 +382,23 @@ latin1_bin 6109
latin1_bin 61
latin1_bin 61
latin1_bin 6120
latin1_bin 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
latin1_bin
latin1_bin
...
...
mysql-test/r/ctype_latin1_de.result
View file @
9f4dd86c
...
@@ -326,6 +326,23 @@ latin1_german2_ci 6109
...
@@ -326,6 +326,23 @@ latin1_german2_ci 6109
latin1_german2_ci 61
latin1_german2_ci 61
latin1_german2_ci 6120
latin1_german2_ci 6120
drop table t1;
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"
"BEGIN ctype_german.inc"
drop table if exists t1;
drop table if exists t1;
create table t1 as select repeat(' ', 64) as s1;
create table t1 as select repeat(' ', 64) as s1;
...
...
mysql-test/r/ctype_sjis.result
View file @
9f4dd86c
...
@@ -81,6 +81,23 @@ sjis_japanese_ci 6109
...
@@ -81,6 +81,23 @@ sjis_japanese_ci 6109
sjis_japanese_ci 61
sjis_japanese_ci 61
sjis_japanese_ci 6120
sjis_japanese_ci 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
@@ -167,6 +184,23 @@ sjis_bin 6109
...
@@ -167,6 +184,23 @@ sjis_bin 6109
sjis_bin 61
sjis_bin 61
sjis_bin 6120
sjis_bin 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
...
mysql-test/r/ctype_tis620.result
View file @
9f4dd86c
...
@@ -2947,6 +2947,23 @@ tis620_thai_ci 6109
...
@@ -2947,6 +2947,23 @@ tis620_thai_ci 6109
tis620_thai_ci 61
tis620_thai_ci 61
tis620_thai_ci 6120
tis620_thai_ci 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
tis620_thai_ci
tis620_thai_ci
...
@@ -3057,6 +3074,23 @@ tis620_bin 6109
...
@@ -3057,6 +3074,23 @@ tis620_bin 6109
tis620_bin 61
tis620_bin 61
tis620_bin 6120
tis620_bin 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
tis620_bin
tis620_bin
...
...
mysql-test/r/ctype_uca.result
View file @
9f4dd86c
...
@@ -5883,6 +5883,23 @@ utf8_unicode_ci 6109
...
@@ -5883,6 +5883,23 @@ utf8_unicode_ci 6109
utf8_unicode_ci 61
utf8_unicode_ci 61
utf8_unicode_ci 6120
utf8_unicode_ci 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf8_unicode_ci
utf8_unicode_ci
...
...
mysql-test/r/ctype_ucs.result
View file @
9f4dd86c
...
@@ -744,6 +744,23 @@ ucs2_general_ci 00610009
...
@@ -744,6 +744,23 @@ ucs2_general_ci 00610009
ucs2_general_ci 0061
ucs2_general_ci 0061
ucs2_general_ci 00610020
ucs2_general_ci 00610020
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
ucs2_general_ci
ucs2_general_ci
...
@@ -925,6 +942,23 @@ ucs2_bin 00610009
...
@@ -925,6 +942,23 @@ ucs2_bin 00610009
ucs2_bin 0061
ucs2_bin 0061
ucs2_bin 00610020
ucs2_bin 00610020
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
ucs2_bin
ucs2_bin
...
...
mysql-test/r/ctype_ujis.result
View file @
9f4dd86c
...
@@ -2217,6 +2217,23 @@ ujis_japanese_ci 6109
...
@@ -2217,6 +2217,23 @@ ujis_japanese_ci 6109
ujis_japanese_ci 61
ujis_japanese_ci 61
ujis_japanese_ci 6120
ujis_japanese_ci 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
@@ -2284,6 +2301,23 @@ ujis_bin 6109
...
@@ -2284,6 +2301,23 @@ ujis_bin 6109
ujis_bin 61
ujis_bin 61
ujis_bin 6120
ujis_bin 6120
drop table t1;
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;
create table t1 engine=innodb select repeat('a',50) as c1;
alter table t1 add index(c1(5));
alter table t1 add index(c1(5));
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
...
...
mysql-test/r/ctype_utf16.result
View file @
9f4dd86c
...
@@ -583,6 +583,23 @@ utf16_general_ci 00610009
...
@@ -583,6 +583,23 @@ utf16_general_ci 00610009
utf16_general_ci 0061
utf16_general_ci 0061
utf16_general_ci 00610020
utf16_general_ci 00610020
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf16_general_ci
utf16_general_ci
...
@@ -613,6 +630,23 @@ utf16_bin 0061
...
@@ -613,6 +630,23 @@ utf16_bin 0061
utf16_bin 00610020
utf16_bin 00610020
drop table t1;
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
# Bug#55980 Character sets: supplementary character _bin ordering is wrong
#
#
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
...
...
mysql-test/r/ctype_utf16_uca.result
View file @
9f4dd86c
...
@@ -2857,6 +2857,23 @@ utf16_unicode_ci 00610009
...
@@ -2857,6 +2857,23 @@ utf16_unicode_ci 00610009
utf16_unicode_ci 0061
utf16_unicode_ci 0061
utf16_unicode_ci 00610020
utf16_unicode_ci 00610020
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf16_unicode_ci
utf16_unicode_ci
...
...
mysql-test/r/ctype_utf16le.result
View file @
9f4dd86c
...
@@ -627,6 +627,23 @@ utf16le_general_ci 61000900
...
@@ -627,6 +627,23 @@ utf16le_general_ci 61000900
utf16le_general_ci 6100
utf16le_general_ci 6100
utf16le_general_ci 61002000
utf16le_general_ci 61002000
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf16le_general_ci
utf16le_general_ci
...
@@ -656,6 +673,23 @@ utf16le_bin 6100
...
@@ -656,6 +673,23 @@ utf16le_bin 6100
utf16le_bin 61002000
utf16le_bin 61002000
drop table t1;
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
# Bug#55980 Character sets: supplementary character _bin ordering is wrong
#
#
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
...
...
mysql-test/r/ctype_utf32.result
View file @
9f4dd86c
...
@@ -582,6 +582,23 @@ utf32_general_ci 0000006100000009
...
@@ -582,6 +582,23 @@ utf32_general_ci 0000006100000009
utf32_general_ci 00000061
utf32_general_ci 00000061
utf32_general_ci 0000006100000020
utf32_general_ci 0000006100000020
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf32_general_ci
utf32_general_ci
...
@@ -612,6 +629,23 @@ utf32_bin 00000061
...
@@ -612,6 +629,23 @@ utf32_bin 00000061
utf32_bin 0000006100000020
utf32_bin 0000006100000020
drop table t1;
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
# Bug#55980 Character sets: supplementary character _bin ordering is wrong
#
#
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
...
...
mysql-test/r/ctype_utf32_uca.result
View file @
9f4dd86c
...
@@ -2857,6 +2857,23 @@ utf32_unicode_ci 0000006100000009
...
@@ -2857,6 +2857,23 @@ utf32_unicode_ci 0000006100000009
utf32_unicode_ci 00000061
utf32_unicode_ci 00000061
utf32_unicode_ci 0000006100000020
utf32_unicode_ci 0000006100000020
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf32_unicode_ci
utf32_unicode_ci
...
...
mysql-test/r/ctype_utf8.result
View file @
9f4dd86c
...
@@ -946,6 +946,23 @@ utf8_general_ci 6109
...
@@ -946,6 +946,23 @@ utf8_general_ci 6109
utf8_general_ci 61
utf8_general_ci 61
utf8_general_ci 6120
utf8_general_ci 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf8_general_ci
utf8_general_ci
...
@@ -1109,6 +1126,23 @@ utf8_bin 6109
...
@@ -1109,6 +1126,23 @@ utf8_bin 6109
utf8_bin 61
utf8_bin 61
utf8_bin 6120
utf8_bin 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf8_bin
utf8_bin
...
...
mysql-test/r/ctype_utf8mb4.result
View file @
9f4dd86c
...
@@ -946,6 +946,23 @@ utf8mb4_general_ci 6109
...
@@ -946,6 +946,23 @@ utf8mb4_general_ci 6109
utf8mb4_general_ci 61
utf8mb4_general_ci 61
utf8mb4_general_ci 6120
utf8mb4_general_ci 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf8mb4_general_ci
utf8mb4_general_ci
...
@@ -1091,6 +1108,23 @@ utf8mb4_bin 61
...
@@ -1091,6 +1108,23 @@ utf8mb4_bin 61
utf8mb4_bin 6120
utf8mb4_bin 6120
drop table t1;
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
# Bug#55980 Character sets: supplementary character _bin ordering is wrong
#
#
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
CREATE TABLE t1 AS SELECT REPEAT('a',1) AS a LIMIT 0;
...
...
mysql-test/r/ctype_utf8mb4_heap.result
View file @
9f4dd86c
...
@@ -885,6 +885,23 @@ utf8mb4_general_ci 6109
...
@@ -885,6 +885,23 @@ utf8mb4_general_ci 6109
utf8mb4_general_ci 61
utf8mb4_general_ci 61
utf8mb4_general_ci 6120
utf8mb4_general_ci 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf8mb4_general_ci
utf8mb4_general_ci
...
@@ -1029,6 +1046,23 @@ utf8mb4_bin 6109
...
@@ -1029,6 +1046,23 @@ utf8mb4_bin 6109
utf8mb4_bin 61
utf8mb4_bin 61
utf8mb4_bin 6120
utf8mb4_bin 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf8mb4_bin
utf8mb4_bin
...
...
mysql-test/r/ctype_utf8mb4_innodb.result
View file @
9f4dd86c
...
@@ -946,6 +946,23 @@ utf8mb4_general_ci 6109
...
@@ -946,6 +946,23 @@ utf8mb4_general_ci 6109
utf8mb4_general_ci 61
utf8mb4_general_ci 61
utf8mb4_general_ci 6120
utf8mb4_general_ci 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf8mb4_general_ci
utf8mb4_general_ci
...
@@ -1090,6 +1107,23 @@ utf8mb4_bin 6109
...
@@ -1090,6 +1107,23 @@ utf8mb4_bin 6109
utf8mb4_bin 61
utf8mb4_bin 61
utf8mb4_bin 6120
utf8mb4_bin 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf8mb4_bin
utf8mb4_bin
...
...
mysql-test/r/ctype_utf8mb4_myisam.result
View file @
9f4dd86c
...
@@ -946,6 +946,23 @@ utf8mb4_general_ci 6109
...
@@ -946,6 +946,23 @@ utf8mb4_general_ci 6109
utf8mb4_general_ci 61
utf8mb4_general_ci 61
utf8mb4_general_ci 6120
utf8mb4_general_ci 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf8mb4_general_ci
utf8mb4_general_ci
...
@@ -1090,6 +1107,23 @@ utf8mb4_bin 6109
...
@@ -1090,6 +1107,23 @@ utf8mb4_bin 6109
utf8mb4_bin 61
utf8mb4_bin 61
utf8mb4_bin 6120
utf8mb4_bin 6120
drop table t1;
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;
select @@collation_connection;
@@collation_connection
@@collation_connection
utf8mb4_bin
utf8mb4_bin
...
...
mysql-test/suite/binlog/r/binlog_row_ctype_cp932.result
View file @
9f4dd86c
...
@@ -11418,6 +11418,23 @@ cp932_japanese_ci 6109
...
@@ -11418,6 +11418,23 @@ cp932_japanese_ci 6109
cp932_japanese_ci 61
cp932_japanese_ci 61
cp932_japanese_ci 6120
cp932_japanese_ci 6120
drop table t1;
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
CREATE TABLE t1 AS
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
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);
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
...
@@ -11445,6 +11462,23 @@ cp932_bin 6109
...
@@ -11445,6 +11462,23 @@ cp932_bin 6109
cp932_bin 61
cp932_bin 61
cp932_bin 6120
cp932_bin 6120
drop table t1;
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
CREATE TABLE t1 AS
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
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);
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
...
...
mysql-test/suite/binlog/r/binlog_stm_ctype_cp932.result
View file @
9f4dd86c
...
@@ -11418,6 +11418,23 @@ cp932_japanese_ci 6109
...
@@ -11418,6 +11418,23 @@ cp932_japanese_ci 6109
cp932_japanese_ci 61
cp932_japanese_ci 61
cp932_japanese_ci 6120
cp932_japanese_ci 6120
drop table t1;
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
CREATE TABLE t1 AS
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
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);
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
...
@@ -11445,6 +11462,23 @@ cp932_bin 6109
...
@@ -11445,6 +11462,23 @@ cp932_bin 6109
cp932_bin 61
cp932_bin 61
cp932_bin 6120
cp932_bin 6120
drop table t1;
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
CREATE TABLE t1 AS
SELECT 10 AS a, REPEAT('a',20) AS b, REPEAT('a',8) AS c, REPEAT('a',8) AS d;
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);
ALTER TABLE t1 ADD PRIMARY KEY(a), ADD KEY(b);
...
...
strings/ctype-utf8.c
View file @
9f4dd86c
...
@@ -4596,7 +4596,7 @@ my_strnxfrm_unicode(CHARSET_INFO *cs,
...
@@ -4596,7 +4596,7 @@ my_strnxfrm_unicode(CHARSET_INFO *cs,
MY_UNICASE_INFO
*
uni_plane
=
(
cs
->
state
&
MY_CS_BINSORT
)
?
MY_UNICASE_INFO
*
uni_plane
=
(
cs
->
state
&
MY_CS_BINSORT
)
?
NULL
:
cs
->
caseinfo
;
NULL
:
cs
->
caseinfo
;
LINT_INIT
(
wc
);
LINT_INIT
(
wc
);
DBUG_ASSERT
(
src
);
DBUG_ASSERT
(
!
srclen
||
src
);
for
(;
dst
<
de
&&
nweights
;
nweights
--
)
for
(;
dst
<
de
&&
nweights
;
nweights
--
)
{
{
...
@@ -4648,7 +4648,7 @@ my_strnxfrm_unicode_full_bin(CHARSET_INFO *cs,
...
@@ -4648,7 +4648,7 @@ my_strnxfrm_unicode_full_bin(CHARSET_INFO *cs,
const
uchar
*
se
=
src
+
srclen
;
const
uchar
*
se
=
src
+
srclen
;
LINT_INIT
(
wc
);
LINT_INIT
(
wc
);
DBUG_ASSERT
(
src
);
DBUG_ASSERT
(
!
srclen
||
src
);
DBUG_ASSERT
(
cs
->
state
&
MY_CS_BINSORT
);
DBUG_ASSERT
(
cs
->
state
&
MY_CS_BINSORT
);
for
(
;
dst
<
de
&&
nweights
;
nweights
--
)
for
(
;
dst
<
de
&&
nweights
;
nweights
--
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment