mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Automatic merge
This commit is contained in:
@@ -15,3 +15,13 @@ checksum table t1, t2;
|
||||
checksum table t1, t2 quick;
|
||||
checksum table t1, t2 extended;
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
# Test that SHOW PROCESSLIST doesn't have the Progress column
|
||||
#
|
||||
|
||||
--replace_column 1 <Id> 3 <Host> 6 <Time>
|
||||
# Embedded server is hardcoded to show "Writing to net" as STATE.
|
||||
--replace_result "Writing to net" "NULL"
|
||||
--replace_regex /localhost[:0-9]*/localhost/
|
||||
SHOW PROCESSLIST;
|
||||
|
@@ -85,5 +85,25 @@ select connected_time <> 0, busy_time <> 0, bytes_received <> 0,
|
||||
bytes_sent <> 0, binlog_bytes_written <> 0
|
||||
from information_schema.client_statistics;
|
||||
|
||||
#
|
||||
# Test of in transaction
|
||||
#
|
||||
|
||||
create table t1 (a int) engine=innodb;
|
||||
select @@in_transaction;
|
||||
begin;
|
||||
select @@in_transaction;
|
||||
insert into t1 values (1);
|
||||
select @@in_transaction;
|
||||
commit;
|
||||
select @@in_transaction;
|
||||
set @@autocommit=0;
|
||||
select @@in_transaction;
|
||||
insert into t1 values (2);
|
||||
select @@in_transaction;
|
||||
set @@autocommit=1;
|
||||
select @@in_transaction;
|
||||
drop table t1;
|
||||
|
||||
# Cleanup
|
||||
set @@global.general_log=@save_general_log;
|
||||
|
Reference in New Issue
Block a user