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
e5e7066e
Commit
e5e7066e
authored
Feb 20, 2006
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Plain Diff
Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into lmy004.:/work/mysql-5.1-bug16406
parents
995d7ed1
4e4520b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
1 deletion
+42
-1
mysql-test/r/events.result
mysql-test/r/events.result
+20
-0
mysql-test/t/events.test
mysql-test/t/events.test
+21
-0
sql/event_timed.cc
sql/event_timed.cc
+1
-1
No files found.
mysql-test/r/events.result
View file @
e5e7066e
...
...
@@ -397,4 +397,24 @@ create table t_16 (s1 int);
create trigger t_16_bi before insert on t_16 for each row create event e_16 on schedule every 1 second do set @a=5;
ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.
drop table t_16;
create event white_space
on schedule every 10 hour
disable
do
select 1;
select event_schema, event_name, definer, event_body from information_schema.events where event_name='white_space';
event_schema event_name definer event_body
events_test white_space root@localhost select 1
drop event white_space;
create event white_space on schedule every 10 hour disable do
select 2;
select event_schema, event_name, definer, event_body from information_schema.events where event_name='white_space';
event_schema event_name definer event_body
events_test white_space root@localhost select 2
drop event white_space;
create event white_space on schedule every 10 hour disable do select 3;
select event_schema, event_name, definer, event_body from information_schema.events where event_name='white_space';
event_schema event_name definer event_body
events_test white_space root@localhost select 3
drop event white_space;
drop database events_test;
mysql-test/t/events.test
View file @
e5e7066e
...
...
@@ -374,6 +374,27 @@ drop table t_16;
# end of test case
####
#
# START: BUG #17453: Creating Event crash the server
#
create
event
white_space
on
schedule
every
10
hour
disable
do
select
1
;
select
event_schema
,
event_name
,
definer
,
event_body
from
information_schema
.
events
where
event_name
=
'white_space'
;
drop
event
white_space
;
create
event
white_space
on
schedule
every
10
hour
disable
do
select
2
;
select
event_schema
,
event_name
,
definer
,
event_body
from
information_schema
.
events
where
event_name
=
'white_space'
;
drop
event
white_space
;
create
event
white_space
on
schedule
every
10
hour
disable
do
select
3
;
select
event_schema
,
event_name
,
definer
,
event_body
from
information_schema
.
events
where
event_name
=
'white_space'
;
drop
event
white_space
;
#
# END: BUG #17453: Creating Event crash the server
#
##set global event_scheduler=1;
##select get_lock("test_lock3", 20);
##create event закачка on schedule every 10 hour do select get_lock("test_lock3", 20);
...
...
sql/event_timed.cc
View file @
e5e7066e
...
...
@@ -117,7 +117,7 @@ event_timed::init_body(THD *thd)
body
.
length
--
;
//the first is always space which I cannot skip in the parser
DBUG_ASSERT
(
*
body_begin
==
' '
);
DBUG_ASSERT
(
my_isspace
(
thd
->
variables
.
character_set_client
,
*
body_begin
)
);
body
.
length
--
;
body
.
str
=
strmake_root
(
root
,
(
char
*
)
body_begin
+
1
,
body
.
length
);
...
...
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