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
e116d697
Commit
e116d697
authored
Feb 15, 2006
by
ingo@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/mydev/mysql-5.1
into mysql.com:/home/mydev/mysql-5.1-bug8841
parents
0248dea3
46fcb188
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
290 additions
and
262 deletions
+290
-262
dbug/Makefile.am
dbug/Makefile.am
+1
-1
mysql-test/r/events.result
mysql-test/r/events.result
+4
-0
mysql-test/t/events.test
mysql-test/t/events.test
+11
-0
sql/event.h
sql/event.h
+22
-22
sql/event_priv.h
sql/event_priv.h
+2
-2
sql/event_timed.cc
sql/event_timed.cc
+239
-235
sql/item.cc
sql/item.cc
+2
-2
sql/sp_head.cc
sql/sp_head.cc
+3
-0
sql/sql_parse.cc
sql/sql_parse.cc
+6
-0
No files found.
dbug/Makefile.am
View file @
e116d697
...
@@ -21,7 +21,7 @@ pkglib_LIBRARIES = libdbug.a
...
@@ -21,7 +21,7 @@ pkglib_LIBRARIES = libdbug.a
noinst_HEADERS
=
dbug_long.h
noinst_HEADERS
=
dbug_long.h
libdbug_a_SOURCES
=
dbug.c sanity.c
libdbug_a_SOURCES
=
dbug.c sanity.c
EXTRA_DIST
=
example1.c example2.c example3.c
\
EXTRA_DIST
=
example1.c example2.c example3.c
\
user.r monty.doc
readme.prof
dbug_add_tags.pl
\
user.r monty.doc dbug_add_tags.pl
\
my_main.c main.c factorial.c dbug_analyze.c
my_main.c main.c factorial.c dbug_analyze.c
NROFF_INC
=
example1.r example2.r example3.r main.r
\
NROFF_INC
=
example1.r example2.r example3.r main.r
\
factorial.r output1.r output2.r output3.r
\
factorial.r output1.r output2.r output3.r
\
...
...
mysql-test/r/events.result
View file @
e116d697
...
@@ -361,4 +361,8 @@ show processlist;
...
@@ -361,4 +361,8 @@ show processlist;
Id User Host db Command Time State Info
Id User Host db Command Time State Info
# root localhost events_test Query # NULL show processlist
# root localhost events_test Query # NULL show processlist
drop event закачка21;
drop event закачка21;
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;
drop database events_test;
drop database events_test;
mysql-test/t/events.test
View file @
e116d697
...
@@ -323,6 +323,17 @@ select release_lock("test_lock2_1");
...
@@ -323,6 +323,17 @@ select release_lock("test_lock2_1");
show
processlist
;
show
processlist
;
drop
event
Ð
·
Ð
°
кÐ
°
Ñ
‡
кÐ
°
21
;
drop
event
Ð
·
Ð
°
кÐ
°
Ñ
‡
кÐ
°
21
;
####
# Bug #16410 Events: CREATE EVENT is legal in a CREATE TRIGGER statement
#
create
table
t_16
(
s1
int
);
--
error
1422
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
;
drop
table
t_16
;
#
# end of test case
####
##set global event_scheduler=1;
##set global event_scheduler=1;
##select get_lock("test_lock3", 20);
##select get_lock("test_lock3", 20);
##create event закачка on schedule every 10 hour do select get_lock("test_lock3", 20);
##create event закачка on schedule every 10 hour do select get_lock("test_lock3", 20);
...
...
sql/event.h
View file @
e116d697
sql/event_priv.h
View file @
e116d697
sql/event_timed.cc
View file @
e116d697
This diff is collapsed.
Click to expand it.
sql/item.cc
View file @
e116d697
...
@@ -375,8 +375,8 @@ void Item::print_item_w_name(String *str)
...
@@ -375,8 +375,8 @@ void Item::print_item_w_name(String *str)
void
Item
::
cleanup
()
void
Item
::
cleanup
()
{
{
DBUG_ENTER
(
"Item::cleanup"
);
DBUG_ENTER
(
"Item::cleanup"
);
DBUG_PRINT
(
"info"
,
(
"Item: 0x%lx,
Type: %d,
name %s, original name %s"
,
DBUG_PRINT
(
"info"
,
(
"Item: 0x%lx, name %s, original name %s"
,
this
,
(
int
)
type
(),
name
?
name
:
"(null)"
,
this
,
name
?
name
:
"(null)"
,
orig_name
?
orig_name
:
"null"
));
orig_name
?
orig_name
:
"null"
));
fixed
=
0
;
fixed
=
0
;
marker
=
0
;
marker
=
0
;
...
...
sql/sp_head.cc
View file @
e116d697
...
@@ -255,6 +255,9 @@ sp_get_flags_for_command(LEX *lex)
...
@@ -255,6 +255,9 @@ sp_get_flags_for_command(LEX *lex)
case
SQLCOM_ALTER_FUNCTION
:
case
SQLCOM_ALTER_FUNCTION
:
case
SQLCOM_DROP_PROCEDURE
:
case
SQLCOM_DROP_PROCEDURE
:
case
SQLCOM_DROP_FUNCTION
:
case
SQLCOM_DROP_FUNCTION
:
case
SQLCOM_CREATE_EVENT
:
case
SQLCOM_ALTER_EVENT
:
case
SQLCOM_DROP_EVENT
:
flags
=
sp_head
::
HAS_COMMIT_OR_ROLLBACK
;
flags
=
sp_head
::
HAS_COMMIT_OR_ROLLBACK
;
break
;
break
;
default:
default:
...
...
sql/sql_parse.cc
View file @
e116d697
...
@@ -3773,6 +3773,12 @@ end_with_restore_list:
...
@@ -3773,6 +3773,12 @@ end_with_restore_list:
is_schema_db
(
lex
->
et
->
dbname
.
str
)))
is_schema_db
(
lex
->
et
->
dbname
.
str
)))
break
;
break
;
if
(
end_active_trans
(
thd
))
{
res
=
-
1
;
break
;
}
switch
(
lex
->
sql_command
)
{
switch
(
lex
->
sql_command
)
{
case
SQLCOM_CREATE_EVENT
:
case
SQLCOM_CREATE_EVENT
:
res
=
evex_create_event
(
thd
,
lex
->
et
,
(
uint
)
lex
->
create_info
.
options
,
res
=
evex_create_event
(
thd
,
lex
->
et
,
(
uint
)
lex
->
create_info
.
options
,
...
...
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