Closed tiancaiamao closed 11 months ago
select @@tidb_current_ts; set @@autocommit = 0; select @@tidb_current_ts;
The expected result is 0, but current result is non-zero.
This is because currently, the run query is based on transaction, rather than conn. There is a tester.tx variable and if tx is nil, it execute
tester.tx
tx
t.tx = Begin() t.executeStatement() t.Commit()
https://github.com/pingcap/mysql-tester/compare/master...tiancaiamao:conn?expand=1#diff-9e185f29fa355d7dd8fdd9c9ff1d0723b85206aa7d37c4eec93997005dc291ebL685-L702
This behaviour is a significant drawback that makes us impossible to write transaction related tests with mysql-tester.
/hold
/unhold
The expected result is 0, but current result is non-zero.
This is because currently, the run query is based on transaction, rather than conn. There is a
tester.tx
variable and iftx
is nil, it executehttps://github.com/pingcap/mysql-tester/compare/master...tiancaiamao:conn?expand=1#diff-9e185f29fa355d7dd8fdd9c9ff1d0723b85206aa7d37c4eec93997005dc291ebL685-L702
This behaviour is a significant drawback that makes us impossible to write transaction related tests with mysql-tester.