Debian Codegraph @

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

raw
1 SET @start_global_value = @@session.gtid_next;
2 SELECT @start_global_value;
3 @start_global_value
4 AUTOMATIC
5 select @@global.gtid_next;
6 ERROR HY000: Variable 'gtid_next' is a SESSION variable
7 select @@session.gtid_next;
8 @@session.gtid_next
9 AUTOMATIC
10 show global variables like 'gtid_next';
11 Variable_name Value
12 show session variables like 'gtid_next';
13 Variable_name Value
14 gtid_next AUTOMATIC
15 select * from performance_schema.global_variables where variable_name='gtid_next';
16 VARIABLE_NAME VARIABLE_VALUE
17 select * from performance_schema.session_variables where variable_name='gtid_next';
18 VARIABLE_NAME VARIABLE_VALUE
19 gtid_next AUTOMATIC
20 set global gtid_next = 1;
21 ERROR HY000: Variable 'gtid_next' is a SESSION variable and can't be used with SET GLOBAL
22 set session gtid_next = "ANONYMOUS";
23 select @@session.gtid_next;
24 @@session.gtid_next
25 ANONYMOUS
26 ROLLBACK;
27 set session gtid_next=default;
28 select @@session.gtid_next;
29 @@session.gtid_next
30 AUTOMATIC
31 ROLLBACK;
32 set session gtid_next=NULL;
33 ERROR 42000: Variable 'gtid_next' can't be set to the value of 'NULL'
34 select @@session.gtid_next;
35 @@session.gtid_next
36 AUTOMATIC
37 SET @@SESSION.GTID_NEXT = 'ANONYMOUS';
38 SET @@SESSION.GTID_NEXT = default;
39 ERROR HY000: @@SESSION.GTID_NEXT cannot be changed by a client that owns a GTID. The client owns ANONYMOUS. Ownership is released on COMMIT or ROLLBACK.
40 SELECT @@SESSION.GTID_NEXT;
41 @@SESSION.GTID_NEXT
42 ANONYMOUS
43 ROLLBACK;
44 set session gtid_next = @start_global_value;
45 select @@session.gtid_next;
46 @@session.gtid_next
47 AUTOMATIC