Commit 1d393fed authored by Kentoku's avatar Kentoku Committed by Kentoku SHIBA

MENT-456 MTR Big test "spider.show_system_tables" is failing on Azure MTR pipeline

Support the dash number of MariaDB versions by Spider's install sequence
parent 33b839b2
......@@ -214,6 +214,10 @@ static LEX_STRING spider_init_queries[] = {
"begin"
" select substring_index(substring_index(version(), '-', 2), '-', -1)"
" into @server_name;"
" if @server_name regexp '^[0-9]+$' then"
" select substring_index(substring_index(version(), '-', 3), '-', -1)"
" into @server_name;"
" end if;"
" select substring_index(version(), '.', 1)"
" into @server_major_version;"
" select substring_index(substring_index(version(), '.', 2), '.', -1)"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment