forked from stoneatom/stonedb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tianmu):The myloader cann't work if the autocommit is closed. (st…
…oneatom#1510) Currently, TIANMU does not support manual transactions and only supports automatic commit. However, it does determine whether to commit the transaction based on the automatic commit parameters of MySQL. If automatic commit is turned off, automatic commit will not be performed on the transaction
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
DROP DATABASE IF EXISTS issue1510_test; | ||
CREATE DATABASE issue1510_test; | ||
USE issue1510_test; | ||
create table ttt(id int primary key,name varchar(10)); | ||
begin; | ||
insert into ttt values(1,'AAA'); | ||
commit; | ||
select * from ttt; | ||
id name | ||
1 AAA | ||
drop table ttt; | ||
create table ttt(id int primary key,name varchar(10)); | ||
insert into ttt values(1,'AAA'); | ||
select * from ttt; | ||
id name | ||
1 AAA | ||
drop table ttt; | ||
DROP DATABASE issue1510_test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--autocommit=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--source include/have_tianmu.inc | ||
|
||
--disable_warnings | ||
DROP DATABASE IF EXISTS issue1510_test; | ||
--enable_warnings | ||
|
||
CREATE DATABASE issue1510_test; | ||
|
||
USE issue1510_test; | ||
|
||
create table ttt(id int primary key,name varchar(10)); | ||
begin; | ||
insert into ttt values(1,'AAA'); | ||
commit; | ||
select * from ttt; | ||
drop table ttt; | ||
|
||
create table ttt(id int primary key,name varchar(10)); | ||
insert into ttt values(1,'AAA'); | ||
select * from ttt; | ||
drop table ttt; | ||
|
||
DROP DATABASE issue1510_test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters