From 1e968057523db1313438368812b99a38ba460542 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 11 Jan 2006 15:11:05 +0100 Subject: 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. --- sql/share/errmsg.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/share') diff --git a/sql/share/errmsg.txt b/sql/share/errmsg.txt index 185b4326c5c..63c75cdaddc 100644 --- a/sql/share/errmsg.txt +++ b/sql/share/errmsg.txt @@ -5605,3 +5605,5 @@ ER_SP_RECURSION_LIMIT ger "Rekursionsgrenze %d (durch Variable max_sp_recursion_depth gegeben) wurde für Routine %.64s überschritten" ER_SP_PROC_TABLE_CORRUPT eng "Failed to load routine %s. The table mysql.proc is missing, corrupt, or contains bad data (internal code %d)" +ER_SP_WRONG_NAME 42000 + eng "Incorrect routine name '%-.64s'" -- cgit v1.2.1