mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Manual merge from mysql-next-mr.
Conflicts: - sql/sql_base.cc
This commit is contained in:
11
mysql-test/include/ctype_datetime.inc
Normal file
11
mysql-test/include/ctype_datetime.inc
Normal file
@ -0,0 +1,11 @@
|
||||
#
|
||||
# Bug#32390 Character sets: casting utf32 to/from date doesn't work
|
||||
#
|
||||
CREATE TABLE t1 AS SELECT repeat('a',20) AS s1 LIMIT 0;
|
||||
SET timestamp=1216359724;
|
||||
INSERT INTO t1 VALUES (current_date);
|
||||
INSERT INTO t1 VALUES (current_time);
|
||||
INSERT INTO t1 VALUES (current_timestamp);
|
||||
SELECT s1, hex(s1) FROM t1;
|
||||
DROP TABLE t1;
|
||||
SET timestamp=0;
|
50
mysql-test/include/ctype_like.inc
Normal file
50
mysql-test/include/ctype_like.inc
Normal file
@ -0,0 +1,50 @@
|
||||
select @@collation_connection;
|
||||
|
||||
#
|
||||
# Create a table with a nullable varchar(10) column
|
||||
# using currect character_set_connection.
|
||||
create table t1 as select repeat(' ',10) as a union select null;
|
||||
alter table t1 add key(a);
|
||||
show create table t1;
|
||||
insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
|
||||
explain select * from t1 where a like 'abc%';
|
||||
explain select * from t1 where a like concat('abc','%');
|
||||
select * from t1 where a like "abc%";
|
||||
select * from t1 where a like concat("abc","%");
|
||||
select * from t1 where a like "ABC%";
|
||||
select * from t1 where a like "test%";
|
||||
select * from t1 where a like "te_t";
|
||||
select * from t1 where a like "%a%";
|
||||
select * from t1 where a like "%abcd%";
|
||||
select * from t1 where a like "%abc\d%";
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug #2619 ucs2 LIKE comparison fails in some cases
|
||||
#
|
||||
|
||||
select 'AA' like 'AA';
|
||||
select 'AA' like 'A%A';
|
||||
select 'AA' like 'A%%A';
|
||||
select 'AA' like 'AA%';
|
||||
select 'AA' like '%AA%';
|
||||
select 'AA' like '%A';
|
||||
select 'AA' like '%AA';
|
||||
select 'AA' like 'A%A%';
|
||||
select 'AA' like '_%_%';
|
||||
select 'AA' like '%A%A';
|
||||
select 'AAA'like 'A%A%A';
|
||||
|
||||
select 'AZ' like 'AZ';
|
||||
select 'AZ' like 'A%Z';
|
||||
select 'AZ' like 'A%%Z';
|
||||
select 'AZ' like 'AZ%';
|
||||
select 'AZ' like '%AZ%';
|
||||
select 'AZ' like '%Z';
|
||||
select 'AZ' like '%AZ';
|
||||
select 'AZ' like 'A%Z%';
|
||||
select 'AZ' like '_%_%';
|
||||
select 'AZ' like '%A%Z';
|
||||
select 'AZ' like 'A_';
|
||||
select 'AZ' like '_Z';
|
||||
select 'AMZ'like 'A%M%Z';
|
1606
mysql-test/include/ctype_numconv.inc
Normal file
1606
mysql-test/include/ctype_numconv.inc
Normal file
File diff suppressed because it is too large
Load Diff
4
mysql-test/include/have_utf16.inc
Normal file
4
mysql-test/include/have_utf16.inc
Normal file
@ -0,0 +1,4 @@
|
||||
-- require r/have_utf16.require
|
||||
disable_query_log;
|
||||
show collation like 'utf16_general_ci';
|
||||
enable_query_log;
|
4
mysql-test/include/have_utf32.inc
Normal file
4
mysql-test/include/have_utf32.inc
Normal file
@ -0,0 +1,4 @@
|
||||
-- require r/have_utf32.require
|
||||
disable_query_log;
|
||||
show collation like 'utf32_general_ci';
|
||||
enable_query_log;
|
7
mysql-test/include/have_utf8mb4.inc
Normal file
7
mysql-test/include/have_utf8mb4.inc
Normal file
@ -0,0 +1,7 @@
|
||||
--require r/have_utf8mb4.require
|
||||
|
||||
--disable_query_log
|
||||
|
||||
SHOW COLLATION LIKE 'utf8mb4_general_ci';
|
||||
|
||||
--enable_query_log
|
@ -185,14 +185,6 @@ INSERT INTO global_suppressions VALUES
|
||||
("Master server does not support or not configured semi-sync replication, fallback to asynchronous"),
|
||||
(": The MySQL server is running with the --secure-backup-file-priv option so it cannot execute this statement"),
|
||||
("Slave: Unknown table 't1' Error_code: 1051"),
|
||||
/*
|
||||
Transient network failures that cause warnings on reconnect.
|
||||
BUG#47743 and BUG#47983.
|
||||
*/
|
||||
("Slave I/O: Get master SERVER_ID failed with error:.*"),
|
||||
("Slave I/O: Get master clock failed with error:.*"),
|
||||
("Slave I/O: Get master COLLATION_SERVER failed with error:.*"),
|
||||
("Slave I/O: Get master TIME_ZONE failed with error:.*"),
|
||||
|
||||
/* Messages from valgrind */
|
||||
("==[0-9]*== Memcheck,"),
|
||||
|
4
mysql-test/include/not_binlog_format_row.inc
Normal file
4
mysql-test/include/not_binlog_format_row.inc
Normal file
@ -0,0 +1,4 @@
|
||||
if (`SELECT @@binlog_format = 'ROW'`)
|
||||
{
|
||||
skip Test cannot run with binlog_format row;
|
||||
}
|
Reference in New Issue
Block a user