mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03: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.
This commit is contained in:
@ -542,17 +542,25 @@ call p_verify_status_increment(0, 0, 0, 0);
|
|||||||
|
|
||||||
--echo # 16. A function changes non-trans-table.
|
--echo # 16. A function changes non-trans-table.
|
||||||
--echo #
|
--echo #
|
||||||
|
--echo # For row-based logging, there is an extra commit for the
|
||||||
|
--echo # non-transactional changes saved in the transaction cache to
|
||||||
|
--echo # the binary log.
|
||||||
|
--echo #
|
||||||
select f1();
|
select f1();
|
||||||
call p_verify_status_increment(0, 0, 0, 0);
|
call p_verify_status_increment(0, 0, 1, 0);
|
||||||
commit;
|
commit;
|
||||||
call p_verify_status_increment(0, 0, 0, 0);
|
call p_verify_status_increment(0, 0, 1, 0);
|
||||||
|
|
||||||
--echo # 17. Read-only statement, a function changes non-trans-table.
|
--echo # 17. Read-only statement, a function changes non-trans-table.
|
||||||
--echo #
|
--echo #
|
||||||
|
--echo # For row-based logging, there is an extra commit for the
|
||||||
|
--echo # non-transactional changes saved in the transaction cache to
|
||||||
|
--echo # the binary log.
|
||||||
|
--echo #
|
||||||
select f1() from t1;
|
select f1() from t1;
|
||||||
call p_verify_status_increment(1, 0, 1, 0);
|
call p_verify_status_increment(1, 0, 2, 0);
|
||||||
commit;
|
commit;
|
||||||
call p_verify_status_increment(1, 0, 1, 0);
|
call p_verify_status_increment(1, 0, 2, 0);
|
||||||
|
|
||||||
--echo # 18. Read-write statement: UPDATE, change 0 (transactional) rows.
|
--echo # 18. Read-write statement: UPDATE, change 0 (transactional) rows.
|
||||||
--echo #
|
--echo #
|
||||||
|
@ -571,27 +571,35 @@ SUCCESS
|
|||||||
|
|
||||||
# 16. A function changes non-trans-table.
|
# 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();
|
select f1();
|
||||||
f1()
|
f1()
|
||||||
2
|
2
|
||||||
call p_verify_status_increment(0, 0, 0, 0);
|
call p_verify_status_increment(0, 0, 1, 0);
|
||||||
SUCCESS
|
SUCCESS
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
call p_verify_status_increment(0, 0, 0, 0);
|
call p_verify_status_increment(0, 0, 1, 0);
|
||||||
SUCCESS
|
SUCCESS
|
||||||
|
|
||||||
# 17. Read-only statement, a function changes non-trans-table.
|
# 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;
|
select f1() from t1;
|
||||||
f1()
|
f1()
|
||||||
2
|
2
|
||||||
2
|
2
|
||||||
call p_verify_status_increment(1, 0, 1, 0);
|
call p_verify_status_increment(1, 0, 2, 0);
|
||||||
SUCCESS
|
SUCCESS
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
call p_verify_status_increment(1, 0, 1, 0);
|
call p_verify_status_increment(1, 0, 2, 0);
|
||||||
SUCCESS
|
SUCCESS
|
||||||
|
|
||||||
# 18. Read-write statement: UPDATE, change 0 (transactional) rows.
|
# 18. Read-write statement: UPDATE, change 0 (transactional) rows.
|
||||||
|
Reference in New Issue
Block a user