mirror of
https://github.com/MariaDB/server.git
synced 2025-07-21 21:22:27 +03:00
A simple "SET SESSION gtid_seq_no= DEFAULT" did not work, it would straight up crash the server! Also, explicitly setting gtid_seq_no to 0 gave an error in --gtid-strict-mode=1. Setting to DEFAULT or 0 should disable any prior setting of gtid_seq_no, so that the next transaction is allocated the next GTID in sequence, as normal. Reviewed-by: Monty <monty@mariadb.org> Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
16 lines
336 B
Plaintext
16 lines
336 B
Plaintext
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SELECT @@global.gtid_seq_no;
|
|
|
|
--error ER_LOCAL_VARIABLE
|
|
SET GLOBAL gtid_seq_no= 10;
|
|
SET SESSION gtid_seq_no= 20;
|
|
SELECT @@session.gtid_seq_no;
|
|
|
|
--error ER_LOCAL_VARIABLE
|
|
SET GLOBAL gtid_seq_no= DEFAULT;
|
|
|
|
SET SESSION gtid_seq_no= DEFAULT;
|
|
|
|
SET SESSION gtid_seq_no= -1;
|
|
SELECT @@session.gtid_seq_no;
|