mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
b04c4801b0
Moved test from main suite to the new suites. Move tests from maria/t and maria/r to maria mysql-test/mysql-test-run.pl: Added support for the new suites
46 lines
1,008 B
Text
46 lines
1,008 B
Text
#
|
|
# Test that can't be run with --extern
|
|
#
|
|
|
|
-- source include/have_maria.inc
|
|
-- source include/have_log_bin.inc
|
|
-- source include/binlog_start_pos.inc
|
|
|
|
let $start_pos= `select @binlog_start_pos`;
|
|
|
|
let $default=`select @@global.storage_engine`;
|
|
set global storage_engine=aria;
|
|
set session storage_engine=aria;
|
|
|
|
# Initialise
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
--enable_warnings
|
|
SET SQL_WARNINGS=1;
|
|
|
|
#
|
|
# UNIQUE key test
|
|
#
|
|
# as long as aria 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;
|
|
--replace_result $start_pos <start_pos>
|
|
--replace_column 2 # 5 #
|
|
eval SHOW BINLOG EVENTS FROM $start_pos;
|
|
drop table t1;
|
|
set binlog_format=default;
|
|
|
|
# End of 5.2 tests
|
|
|
|
--disable_result_log
|
|
--disable_query_log
|
|
eval set global storage_engine=$default;
|
|
set global aria_log_file_size=default;
|
|
--enable_result_log
|
|
--enable_query_log
|