Debian Codegraph @

mysql-test/suite/sys_vars/r/gtid_owned_basic.result

raw
1 SET @start_global_value = @@global.gtid_owned;
2 SELECT @start_global_value;
3 @start_global_value
4
5 select @@global.gtid_owned;
6 @@global.gtid_owned
7
8 select @@session.gtid_owned;
9 @@session.gtid_owned
10
11 show global variables like 'gtid_owned';
12 Variable_name Value
13 gtid_owned
14 show session variables like 'gtid_owned';
15 Variable_name Value
16 gtid_owned
17 select * from performance_schema.global_variables where variable_name='gtid_owned';
18 VARIABLE_NAME VARIABLE_VALUE
19 gtid_owned
20 select * from performance_schema.session_variables where variable_name='gtid_owned';
21 VARIABLE_NAME VARIABLE_VALUE
22 gtid_owned
23 set @@global.gtid_owned = 1;
24 ERROR HY000: Variable 'gtid_owned' is a read only variable
25 set @@session.gtid_owned = 1;
26 ERROR HY000: Variable 'gtid_owned' is a read only variable
27 set @@session.gtid_next = 'anonymous';
28 select @@session.gtid_owned;
29 @@session.gtid_owned
30 ANONYMOUS
31 select @@global.gtid_owned;
32 @@global.gtid_owned
33
34 ROLLBACK;
35 set @@session.gtid_next = 'automatic';
36 select @@session.gtid_owned;
37 @@session.gtid_owned
38
39 select @@global.gtid_owned;
40 @@global.gtid_owned
41