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
0a10782f
Commit
0a10782f
authored
Sep 05, 2007
by
malff@omega.weblab
Browse files
Options
Browse Files
Download
Plain Diff
Merge malff@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into omega.weblab:/home/malff/TREE/mysql-5.1-cleanup
parents
2e3ded3e
43e5ab75
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 @
0a10782f
...
@@ -52,7 +52,8 @@ do select 'events_logs_test' as inside_event, sleep(1.5);
...
@@ -52,7 +52,8 @@ do select 'events_logs_test' as inside_event, sleep(1.5);
Nothing should be logged
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
user_host db sql_text
set @@global.long_query_time=1;
set @@global.long_query_time=1;
truncate mysql.slow_log;
truncate mysql.slow_log;
...
@@ -61,7 +62,8 @@ do select 'events_logs_test' as inside_event, sleep(1.5);
...
@@ -61,7 +62,8 @@ do select 'events_logs_test' as inside_event, sleep(1.5);
Event sub-statement should be logged.
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 db sql_text
USER_HOST events_test select 'events_logs_test' as inside_event, sleep(1.5)
USER_HOST events_test select 'events_logs_test' as inside_event, sleep(1.5)
drop database events_test;
drop database events_test;
...
...
mysql-test/t/events_logs_tests.test
View file @
0a10782f
...
@@ -61,7 +61,8 @@ create event ev_log_general on schedule at now() on completion not preserve
...
@@ -61,7 +61,8 @@ create event ev_log_general on schedule at now() on completion not preserve
--
echo
Nothing
should
be
logged
--
echo
Nothing
should
be
logged
--
echo
--
echo
--
replace_column
1
USER_HOST
--
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
;
set
@@
global
.
long_query_time
=
1
;
truncate
mysql
.
slow_log
;
truncate
mysql
.
slow_log
;
create
event
ev_log_general
on
schedule
at
now
()
on
completion
not
preserve
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
...
@@ -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
Event
sub
-
statement
should
be
logged
.
--
echo
--
echo
--
replace_column
1
USER_HOST
--
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
;
drop
database
events_test
;
set
global
event_scheduler
=
off
;
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