Skip to content

Commit

Permalink
show variables not support mysql handlers but can use table function …
Browse files Browse the repository at this point in the history
…show_variables() to query all vars in session
  • Loading branch information
TCeason committed Sep 6, 2024
1 parent 6d674fd commit 302c087
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/sqllogictests/suites/query/show_variables.test
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
statement ok
set variable (a, b) = (select 3, 'x')

onlyif http
query TTT
show variables
----
a 3 UInt8
b 'x' String

onlyif http
query TTT
show variables where name like 'a'
----
a 3 UInt8


onlyif http
query TTT
show variables where type = 'UInt8'
----
a 3 UInt8

onlyif http
query TTT
show variables where value = '\'x\''
----
b 'x' String

query TTT
select name, value, type from show_variables() where name='a';
----
a 3 UInt8

0 comments on commit 302c087

Please sign in to comment.