diff options
author | unknown <pem@mysql.com> | 2006-01-19 16:13:04 +0100 |
---|---|---|
committer | unknown <pem@mysql.com> | 2006-01-19 16:13:04 +0100 |
commit | b60fc2cee8dfce23bc8a7113649e6c5534ad1392 (patch) | |
tree | 3336cea2cca442dfd2befbdfc245df7aae38384f /sql/sp_head.cc | |
parent | 76c1f674c1bcc25c5b67bcf0736968cf0fe22fff (diff) | |
download | mariadb-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.cc | 22 |
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] == ' '); } |