Skip to content

Commit e46f6e9

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 e46f6e9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

โ€Žtests/sqllogictests/src/client/mysql_client.rsโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub struct MySQLClient {
3232

3333
impl MySQLClient {
3434
pub async fn create(database: &str) -> Result<Self> {
35-
let url = format!("mysql://root:@127.0.0.1:3307/{database}");
35+
let url = format!("mysql://root:@127.0.0.1:3308/{database}");
3636
let pool = Pool::new(url.as_str());
3737
let conn = pool.get_conn().await?;
3838
Ok(Self {
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)