mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
An after-fix for
MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found Recording the forgotten test results.
This commit is contained in:
parent
cfa4548ba5
commit
5fc5195fc5
2 changed files with 18 additions and 0 deletions
|
@ -74,6 +74,15 @@ select 1 from t1 order by cast(a as char(1));
|
|||
1
|
||||
1
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
|
||||
#
|
||||
SET character_set_client=latin1;
|
||||
SET character_set_connection= @test_character_set;
|
||||
SET collation_connection= @test_collation;
|
||||
SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
|
||||
COLLATION('.') c1
|
||||
cp932_japanese_ci .wwwmysqlcom
|
||||
set names utf8;
|
||||
create table t1 (
|
||||
name varchar(10),
|
||||
|
|
9
mysql-test/suite/binlog/r/binlog_stm_ctype_cp932.result
Executable file → Normal file
9
mysql-test/suite/binlog/r/binlog_stm_ctype_cp932.result
Executable file → Normal file
|
@ -74,6 +74,15 @@ select 1 from t1 order by cast(a as char(1));
|
|||
1
|
||||
1
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
|
||||
#
|
||||
SET character_set_client=latin1;
|
||||
SET character_set_connection= @test_character_set;
|
||||
SET collation_connection= @test_collation;
|
||||
SELECT COLLATION('.'), SUBSTRING_INDEX('.wwwmysqlcom', '.', -2) AS c1;
|
||||
COLLATION('.') c1
|
||||
cp932_japanese_ci .wwwmysqlcom
|
||||
set names utf8;
|
||||
create table t1 (
|
||||
name varchar(10),
|
||||
|
|
Loading…
Reference in a new issue