1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-21 21:22:27 +03:00
Files
mariadb/mysql-test/suite/sys_vars/t/gtid_seq_no_basic.test
Kristian Nielsen d632c85bb7 MDEV-31723: Crash on SET SESSION gtid_seq_no= DEFAULT
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>
2023-07-30 22:00:43 +02:00

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;