mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
704b4845aa
There were so many changes into mtr (this is the new mtr coming) that I rather copied mtr from 6.0-main here (at least this one knows how to run Maria tests). I also fixed suite/maria tests to be accepted by the new mtr. mysys/thr_mutex.c: adding DBUG_PRINT here, so that we can locate where the warning is issued.
40 lines
811 B
Text
40 lines
811 B
Text
#
|
|
# Test that can't be run with --extern
|
|
#
|
|
|
|
-- source include/have_maria.inc
|
|
-- source include/have_log_bin.inc
|
|
|
|
let $default=`select @@global.storage_engine`;
|
|
set global storage_engine=maria;
|
|
set session storage_engine=maria;
|
|
|
|
# Initialise
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
--enable_warnings
|
|
SET SQL_WARNINGS=1;
|
|
|
|
#
|
|
# UNIQUE key test
|
|
#
|
|
# as long as maria cannot rollback, binlog should contain both inserts
|
|
#
|
|
RESET MASTER;
|
|
set binlog_format=statement;
|
|
CREATE TABLE t1 (a int primary key);
|
|
insert t1 values (1),(2),(3);
|
|
--error ER_DUP_ENTRY
|
|
insert t1 values (4),(2),(5);
|
|
select * from t1;
|
|
SHOW BINLOG EVENTS FROM 106;
|
|
drop table t1;
|
|
set binlog_format=default;
|
|
|
|
# End of 5.2 tests
|
|
|
|
--disable_result_log
|
|
--disable_query_log
|
|
eval set global storage_engine=$default;
|
|
--enable_result_log
|
|
--enable_query_log
|