mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
389dcccbed
- Merge fixes - "make test" for maria - Replaced ma_test_all with a perl version, which now can be run in unittest mode. include/my_sys.h: Added clean up function for my_uuid() mysql-test/r/create.result: Fixed result file. mysql-test/r/maria-big.result: Changed not to get a warning. mysql-test/r/maria-connect.result: Not to get a warning. mysql-test/r/maria-recovery.result: Not to get a warning. mysql-test/r/maria.result: Fixed result file. Added test for warning on log file. mysql-test/r/ps_maria.result: Fixed result file. New bit was added to source. mysql-test/t/maria-big.test: To avoid a warning. mysql-test/t/maria-connect.test: To avoid a warning. mysql-test/t/maria-recovery.test: To avoid a warning. mysql-test/t/maria.test: To avoid a warning. mysql-test/t/ps_maria.test: To avoid a warning. mysys/my_uuid.c: Added clean up function for my_uuid() sql/mysqld.cc: Manual merge. storage/maria/Makefile.am: Added "make test" for maria. storage/maria/ma_key_recover.c: Fix for maria_recovery storage/maria/ma_test_all.sh: Deprecated file. Functionality moved to unittest/ma_test_all-t BitKeeper/deleted/.del-unit.pl: BitKeeper file /home/my/mysql-maria/storage/maria/unit.pl
24 lines
728 B
Text
24 lines
728 B
Text
set global storage_engine=maria;
|
|
set session storage_engine=maria;
|
|
set global maria_log_file_size=4294967295;
|
|
drop table if exists t1;
|
|
SET SQL_WARNINGS=1;
|
|
RESET MASTER;
|
|
set binlog_format=statement;
|
|
CREATE TABLE t1 (a int primary key);
|
|
insert t1 values (1),(2),(3);
|
|
insert t1 values (4),(2),(5);
|
|
ERROR 23000: Duplicate entry '2' for key 'PRIMARY'
|
|
select * from t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
4
|
|
SHOW BINLOG EVENTS FROM 106;
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
master-bin.000001 106 Query 1 204 use `test`; CREATE TABLE t1 (a int primary key)
|
|
master-bin.000001 204 Query 1 295 use `test`; insert t1 values (1),(2),(3)
|
|
master-bin.000001 295 Query 1 386 use `test`; insert t1 values (4),(2),(5)
|
|
drop table t1;
|
|
set binlog_format=default;
|