Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
43e5ab75
Commit
43e5ab75
authored
Sep 05, 2007
by
malff@omega.weblab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test events_logs_tests cleanup
Fixed test failure under heavy load, in case truncate table is slow.
parent
5cd66ca6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
mysql-test/r/events_logs_tests.result
mysql-test/r/events_logs_tests.result
+4
-2
mysql-test/t/events_logs_tests.test
mysql-test/t/events_logs_tests.test
+4
-2
No files found.
mysql-test/r/events_logs_tests.result
View file @
43e5ab75
...
...
@@ -52,7 +52,8 @@ do select 'events_logs_test' as inside_event, sleep(1.5);
Nothing should be logged
select user_host, db, sql_text from mysql.slow_log where sql_text not like 'create event%';
select user_host, db, sql_text from mysql.slow_log
where sql_text like 'select \'events_logs_test\'%';
user_host db sql_text
set @@global.long_query_time=1;
truncate mysql.slow_log;
...
...
@@ -61,7 +62,8 @@ do select 'events_logs_test' as inside_event, sleep(1.5);
Event sub-statement should be logged.
select user_host, db, sql_text from mysql.slow_log where sql_text not like 'create event%';
select user_host, db, sql_text from mysql.slow_log
where sql_text like 'select \'events_logs_test\'%';
user_host db sql_text
USER_HOST events_test select 'events_logs_test' as inside_event, sleep(1.5)
drop database events_test;
...
...
mysql-test/t/events_logs_tests.test
View file @
43e5ab75
...
...
@@ -61,7 +61,8 @@ create event ev_log_general on schedule at now() on completion not preserve
--
echo
Nothing
should
be
logged
--
echo
--
replace_column
1
USER_HOST
select
user_host
,
db
,
sql_text
from
mysql
.
slow_log
where
sql_text
not
like
'create event%'
;
select
user_host
,
db
,
sql_text
from
mysql
.
slow_log
where
sql_text
like
'select \'events_logs_test\'%'
;
set
@@
global
.
long_query_time
=
1
;
truncate
mysql
.
slow_log
;
create
event
ev_log_general
on
schedule
at
now
()
on
completion
not
preserve
...
...
@@ -72,7 +73,8 @@ create event ev_log_general on schedule at now() on completion not preserve
--
echo
Event
sub
-
statement
should
be
logged
.
--
echo
--
replace_column
1
USER_HOST
select
user_host
,
db
,
sql_text
from
mysql
.
slow_log
where
sql_text
not
like
'create event%'
;
select
user_host
,
db
,
sql_text
from
mysql
.
slow_log
where
sql_text
like
'select \'events_logs_test\'%'
;
drop
database
events_test
;
set
global
event_scheduler
=
off
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment