Skip to content

Commit 302c087

Browse files
committed
show variables not support mysql handlers but can use table function show_variables() to query all vars in session
1 parent 6d674fd commit 302c087

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
statement ok
22
set variable (a, b) = (select 3, 'x')
33

4+
onlyif http
45
query TTT
56
show variables
67
----
78
a 3 UInt8
89
b 'x' String
910

11+
onlyif http
1012
query TTT
1113
show variables where name like 'a'
1214
----
1315
a 3 UInt8
1416

15-
17+
onlyif http
1618
query TTT
1719
show variables where type = 'UInt8'
1820
----
1921
a 3 UInt8
2022

23+
onlyif http
2124
query TTT
2225
show variables where value = '\'x\''
2326
----
2427
b 'x' String
28+
29+
query TTT
30+
select name, value, type from show_variables() where name='a';
31+
----
32+
a 3 UInt8

0 commit comments

Comments
ย (0)