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
0ae0f2cd
Commit
0ae0f2cd
authored
Mar 15, 2006
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/opt/local/work/mysql-5.1-root
parents
2388e052
386ec52a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
0 deletions
+43
-0
mysql-test/r/events.result
mysql-test/r/events.result
+6
-0
mysql-test/r/sp-error.result
mysql-test/r/sp-error.result
+7
-0
mysql-test/t/events.test
mysql-test/t/events.test
+10
-0
mysql-test/t/sp-error.test
mysql-test/t/sp-error.test
+18
-0
sql/sp_head.cc
sql/sp_head.cc
+2
-0
No files found.
mysql-test/r/events.result
View file @
0ae0f2cd
...
...
@@ -465,4 +465,10 @@ select event_schema, event_name, definer, event_body from information_schema.eve
event_schema event_name definer event_body
events_test white_space root@localhost select 3
drop event white_space;
create event e1 on schedule every 1 year do set @a = 5;
create table t1 (s1 int);
create trigger t1_ai after insert on t1 for each row show create event e1;
ERROR 0A000: Not allowed to return a result set from a trigger
drop table t1;
drop event e1;
drop database events_test;
mysql-test/r/sp-error.result
View file @
0ae0f2cd
...
...
@@ -1166,3 +1166,10 @@ drop procedure bug15091;
drop function if exists bug16896;
create aggregate function bug16896() returns int return 1;
ERROR 42000: AGGREGATE is not supported for stored functions
drop function if exists bug16164;
create function bug16164() returns int
begin
show authors;
return 42;
end|
ERROR 0A000: Not allowed to return a result set from a function
mysql-test/t/events.test
View file @
0ae0f2cd
...
...
@@ -427,6 +427,16 @@ drop event white_space;
# END: BUG #17453: Creating Event crash the server
#
#
# Bug#17403 "Events: packets out of order with show create event"
#
create
event
e1
on
schedule
every
1
year
do
set
@
a
=
5
;
create
table
t1
(
s1
int
);
--
error
ER_SP_NO_RETSET
create
trigger
t1_ai
after
insert
on
t1
for
each
row
show
create
event
e1
;
drop
table
t1
;
drop
event
e1
;
##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);
...
...
mysql-test/t/sp-error.test
View file @
0ae0f2cd
...
...
@@ -1691,6 +1691,24 @@ drop function if exists bug16896;
--
error
ER_SP_NO_AGGREGATE
create
aggregate
function
bug16896
()
returns
int
return
1
;
#
# End of 5.0 tests
#
#
# Bug#16164 "Easter egg": check that SHOW AUTHORS is disabled in
# stored functions/triggers
#
--
disable_warnings
drop
function
if
exists
bug16164
;
--
enable_warnings
delimiter
|
;
--
error
ER_SP_NO_RETSET
create
function
bug16164
()
returns
int
begin
show
authors
;
return
42
;
end
|
#
# BUG#NNNN: New bug synopsis
...
...
sql/sp_head.cc
View file @
0ae0f2cd
...
...
@@ -176,6 +176,7 @@ sp_get_flags_for_command(LEX *lex)
case
SQLCOM_SHOW_CREATE_DB
:
case
SQLCOM_SHOW_CREATE_FUNC
:
case
SQLCOM_SHOW_CREATE_PROC
:
case
SQLCOM_SHOW_CREATE_EVENT
:
case
SQLCOM_SHOW_DATABASES
:
case
SQLCOM_SHOW_ERRORS
:
case
SQLCOM_SHOW_FIELDS
:
...
...
@@ -200,6 +201,7 @@ sp_get_flags_for_command(LEX *lex)
case
SQLCOM_SHOW_WARNS
:
case
SQLCOM_SHOW_PROC_CODE
:
case
SQLCOM_SHOW_FUNC_CODE
:
case
SQLCOM_SHOW_AUTHORS
:
case
SQLCOM_REPAIR
:
case
SQLCOM_BACKUP_TABLE
:
case
SQLCOM_RESTORE_TABLE
:
...
...
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