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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d7d307fb
Commit
d7d307fb
authored
Aug 29, 2005
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Plain Diff
Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.0
into lmy004.:/work/mysql-5.0-ready4
parents
c019e40f
ed0bac21
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
mysql-test/r/sp-error.result
mysql-test/r/sp-error.result
+8
-0
mysql-test/t/sp-error.test
mysql-test/t/sp-error.test
+13
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+10
-2
No files found.
mysql-test/r/sp-error.result
View file @
d7d307fb
...
@@ -748,6 +748,14 @@ end|
...
@@ -748,6 +748,14 @@ end|
call bug11394(2, 1)|
call bug11394(2, 1)|
ERROR HY000: Recursive stored routines are not allowed.
ERROR HY000: Recursive stored routines are not allowed.
drop procedure bug11394|
drop procedure bug11394|
CREATE PROCEDURE BUG_12490() HELP CONTENTS;
ERROR 0A000: HELP is not allowed in stored procedures
CREATE FUNCTION BUG_12490() RETURNS INT HELP CONTENTS;
ERROR 0A000: HELP is not allowed in stored procedures
CREATE TABLE t_bug_12490(a int);
CREATE TRIGGER BUG_12490 BEFORE UPDATE ON t_bug_12490 FOR EACH ROW HELP CONTENTS;
ERROR 0A000: HELP is not allowed in stored procedures
DROP TABLE t_bug_12490;
drop function if exists bug11834_1;
drop function if exists bug11834_1;
drop function if exists bug11834_2;
drop function if exists bug11834_2;
create function bug11834_1() returns int return 10;
create function bug11834_1() returns int return 10;
...
...
mysql-test/t/sp-error.test
View file @
d7d307fb
...
@@ -1079,6 +1079,19 @@ call bug11394(2, 1)|
...
@@ -1079,6 +1079,19 @@ call bug11394(2, 1)|
drop
procedure
bug11394
|
drop
procedure
bug11394
|
delimiter
;
|
delimiter
;
|
#
# BUG 12490 (Packets out of order if calling HELP CONTENTS from Stored Procedure)
#
--
error
1314
CREATE
PROCEDURE
BUG_12490
()
HELP
CONTENTS
;
--
error
1314
CREATE
FUNCTION
BUG_12490
()
RETURNS
INT
HELP
CONTENTS
;
CREATE
TABLE
t_bug_12490
(
a
int
);
--
error
1314
CREATE
TRIGGER
BUG_12490
BEFORE
UPDATE
ON
t_bug_12490
FOR
EACH
ROW
HELP
CONTENTS
;
DROP
TABLE
t_bug_12490
;
#
#
# Bug#11834 "Re-execution of prepared statement with dropped function
# Bug#11834 "Re-execution of prepared statement with dropped function
# crashes server". Also tests handling of prepared stmts which use
# crashes server". Also tests handling of prepared stmts which use
...
...
sql/sql_yacc.yy
View file @
d7d307fb
...
@@ -1020,11 +1020,19 @@ execute_var_ident: '@' ident_or_text
...
@@ -1020,11 +1020,19 @@ execute_var_ident: '@' ident_or_text
/* help */
/* help */
help:
help:
HELP_SYM ident_or_text
HELP_SYM
{
if (Lex->sphead)
{
my_error(ER_SP_BADSTATEMENT, MYF(0), "HELP");
YYABORT;
}
}
ident_or_text
{
{
LEX *lex= Lex;
LEX *lex= Lex;
lex->sql_command= SQLCOM_HELP;
lex->sql_command= SQLCOM_HELP;
lex->help_arg= $
2
.str;
lex->help_arg= $
3
.str;
};
};
/* change master */
/* change master */
...
...
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