summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2006-01-19 16:13:04 +0100
committerunknown <pem@mysql.com>2006-01-19 16:13:04 +0100
commitb60fc2cee8dfce23bc8a7113649e6c5534ad1392 (patch)
tree3336cea2cca442dfd2befbdfc245df7aae38384f /sql/sp_head.cc
parent76c1f674c1bcc25c5b67bcf0736968cf0fe22fff (diff)
downloadmariadb-git-b60fc2cee8dfce23bc8a7113649e6c5534ad1392.tar.gz
Post-review fixes (BUG#15658).
sql/sp_head.cc: Post-review fix. sql/sp_head.h: Post-review fix. sql/sql_yacc.yy: Post-review fix.
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 9c86ebfddf4..f42fbef82e3 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -387,19 +387,19 @@ sp_name_current_db_new(THD *thd, LEX_STRING name)
}
/*
- * Check that the name 'ident' is ok. It's assumed to be an 'ident'
- * from the parser, so we only have to check length and trailing spaces.
- * The former is a standard requirement (and 'show status' assumes a
- * non-empty name), the latter is a mysql:ism as trailing spaces are
- * removed by get_field().
- *
- * RETURN
- * TRUE - bad name
- * FALSE - name is ok
- */
+ Check that the name 'ident' is ok. It's assumed to be an 'ident'
+ from the parser, so we only have to check length and trailing spaces.
+ The former is a standard requirement (and 'show status' assumes a
+ non-empty name), the latter is a mysql:ism as trailing spaces are
+ removed by get_field().
+
+ RETURN
+ TRUE - bad name
+ FALSE - name is ok
+*/
bool
-sp_name_check(LEX_STRING ident)
+check_routine_name(LEX_STRING ident)
{
return (!ident.str || !ident.str[0] || ident.str[ident.length-1] == ' ');
}