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
98d7964d
Commit
98d7964d
authored
Jan 03, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'SHOW CREATE FUNCTION' to say 'FUNCTION' in its error message. (Bug #6338)
parent
a5ccba28
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
mysql-test/r/sp-error.result
mysql-test/r/sp-error.result
+2
-0
mysql-test/t/sp-error.test
mysql-test/t/sp-error.test
+2
-0
sql/sql_parse.cc
sql/sql_parse.cc
+1
-0
No files found.
mysql-test/r/sp-error.result
View file @
98d7964d
...
@@ -47,6 +47,8 @@ Warnings:
...
@@ -47,6 +47,8 @@ Warnings:
Note 1305 PROCEDURE foo does not exist
Note 1305 PROCEDURE foo does not exist
show create procedure foo|
show create procedure foo|
ERROR 42000: PROCEDURE foo does not exist
ERROR 42000: PROCEDURE foo does not exist
show create function foo|
ERROR 42000: FUNCTION foo does not exist
create procedure foo()
create procedure foo()
foo: loop
foo: loop
leave bar;
leave bar;
...
...
mysql-test/t/sp-error.test
View file @
98d7964d
...
@@ -81,6 +81,8 @@ call foo()|
...
@@ -81,6 +81,8 @@ call foo()|
drop
procedure
if
exists
foo
|
drop
procedure
if
exists
foo
|
--
error
1305
--
error
1305
show
create
procedure
foo
|
show
create
procedure
foo
|
--
error
1305
show
create
function
foo
|
# LEAVE/ITERATE/GOTO with no match
# LEAVE/ITERATE/GOTO with no match
--
error
1308
--
error
1308
...
...
sql/sql_parse.cc
View file @
98d7964d
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
#define SP_COM_STRING(LP) \
#define SP_COM_STRING(LP) \
((LP)->sql_command == SQLCOM_CREATE_SPFUNCTION || \
((LP)->sql_command == SQLCOM_CREATE_SPFUNCTION || \
(LP)->sql_command == SQLCOM_ALTER_FUNCTION || \
(LP)->sql_command == SQLCOM_ALTER_FUNCTION || \
(LP)->sql_command == SQLCOM_SHOW_CREATE_FUNC || \
(LP)->sql_command == SQLCOM_DROP_FUNCTION ? \
(LP)->sql_command == SQLCOM_DROP_FUNCTION ? \
"FUNCTION" : "PROCEDURE")
"FUNCTION" : "PROCEDURE")
...
...
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