diff --git a/tests/sqllogictests/src/client/mysql_client.rs b/tests/sqllogictests/src/client/mysql_client.rs index b821e760f3201..3aac49552b9df 100644 --- a/tests/sqllogictests/src/client/mysql_client.rs +++ b/tests/sqllogictests/src/client/mysql_client.rs @@ -32,7 +32,7 @@ pub struct MySQLClient { impl MySQLClient { pub async fn create(database: &str) -> Result { - let url = format!("mysql://root:@127.0.0.1:3307/{database}"); + let url = format!("mysql://root:@127.0.0.1:3308/{database}"); let pool = Pool::new(url.as_str()); let conn = pool.get_conn().await?; Ok(Self { diff --git a/tests/sqllogictests/suites/query/show_variables.test b/tests/sqllogictests/suites/query/show_variables.test index 9b608589614cd..d55b427f2108f 100644 --- a/tests/sqllogictests/suites/query/show_variables.test +++ b/tests/sqllogictests/suites/query/show_variables.test @@ -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