mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-34539 Invalid "use" and "Schema" in slow query log file with multi-line schema
quote a database name in the slow log
This commit is contained in:
@ -181,6 +181,30 @@ SET @@global.slow_query_log= @old_slow_query_log;
|
||||
SET SESSION slow_query_log=default;
|
||||
drop table tab_MDEV_30820, tab2;
|
||||
drop function get_zero;
|
||||
#
|
||||
# End of 10.4 tests
|
||||
#
|
||||
# MDEV-34539 Invalid "use" and "Schema" in slow query log file with multi-line schema
|
||||
#
|
||||
set global log_output='file';
|
||||
set @@log_slow_filter= 'not_using_index';
|
||||
set slow_query_log=1;
|
||||
set timestamp=1234567890;
|
||||
create database `a
|
||||
b`;
|
||||
use `a
|
||||
b`;
|
||||
select count(*) from mysql.global_priv where length(priv)>2;
|
||||
count(*)
|
||||
5
|
||||
drop database `a
|
||||
b`;
|
||||
use test;
|
||||
set global log_output= @old_log_output;
|
||||
set slow_query_log=default;
|
||||
set log_slow_filter=default;
|
||||
set timestamp=default;
|
||||
use `a
|
||||
b`;
|
||||
SET timestamp=1234567890;
|
||||
select count(*) from mysql.global_priv where length(priv)>2
|
||||
# End of 10.5 tests
|
||||
|
Reference in New Issue
Block a user