summaryrefslogtreecommitdiff
path: root/sql/sp_head.h
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2006-01-11 15:11:05 +0100
committerunknown <pem@mysql.com>2006-01-11 15:11:05 +0100
commit1e968057523db1313438368812b99a38ba460542 (patch)
tree702391a280a23dfee13efd2028892e83aef26525 /sql/sp_head.h
parent935ad7e8f376805f435d6e105d337efb54a31379 (diff)
downloadmariadb-git-1e968057523db1313438368812b99a38ba460542.tar.gz
Fixing BUG#15658: Server crashes after creating function as empty string
Empty strings (and names with trailing spaces) should not be allowed. mysql-test/r/sp-error.result: New testcase for BUG#15658 mysql-test/t/sp-error.test: New testcase for BUG#15658 sql/share/errmsg.txt: New error message for bad stored routine names. sql/sp_head.cc: Added function for checking SP names. (Mustn't be empty or contain trailing spaces.) sql/sp_head.h: Added function for checking SP names. sql/sql_yacc.yy: Check db and name for stored routines.
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r--sql/sp_head.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h
index 2eebd35f6dc..30859ee8f8a 100644
--- a/sql/sp_head.h
+++ b/sql/sp_head.h
@@ -102,6 +102,8 @@ public:
sp_name *
sp_name_current_db_new(THD *thd, LEX_STRING name);
+bool
+sp_name_check(LEX_STRING name);
class sp_head :private Query_arena
{