mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Updating commit.inc since the number of commits done for non-transactional
tables is not zero any more. For row-based logging, there is an extra commit for sending rows changed by the statement to the binary log. mysql-test/include/commit.inc: For row-based logging, an extra commit is done for each statement to commit non-transactional changes to the binary log. mysql-test/r/commit_1innodb.result: Result change.
This commit is contained in:
parent
e44403fe31
commit
600a664a5a
2 changed files with 24 additions and 8 deletions
|
|
@ -571,27 +571,35 @@ SUCCESS
|
|||
|
||||
# 16. A function changes non-trans-table.
|
||||
#
|
||||
# For row-based logging, there is an extra commit for the
|
||||
# non-transactional changes saved in the transaction cache to
|
||||
# the binary log.
|
||||
#
|
||||
select f1();
|
||||
f1()
|
||||
2
|
||||
call p_verify_status_increment(0, 0, 0, 0);
|
||||
call p_verify_status_increment(0, 0, 1, 0);
|
||||
SUCCESS
|
||||
|
||||
commit;
|
||||
call p_verify_status_increment(0, 0, 0, 0);
|
||||
call p_verify_status_increment(0, 0, 1, 0);
|
||||
SUCCESS
|
||||
|
||||
# 17. Read-only statement, a function changes non-trans-table.
|
||||
#
|
||||
# For row-based logging, there is an extra commit for the
|
||||
# non-transactional changes saved in the transaction cache to
|
||||
# the binary log.
|
||||
#
|
||||
select f1() from t1;
|
||||
f1()
|
||||
2
|
||||
2
|
||||
call p_verify_status_increment(1, 0, 1, 0);
|
||||
call p_verify_status_increment(1, 0, 2, 0);
|
||||
SUCCESS
|
||||
|
||||
commit;
|
||||
call p_verify_status_increment(1, 0, 1, 0);
|
||||
call p_verify_status_increment(1, 0, 2, 0);
|
||||
SUCCESS
|
||||
|
||||
# 18. Read-write statement: UPDATE, change 0 (transactional) rows.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue