1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Adding the "const" qualified to the LEX_CSTRING parameter of a few check_xxx() functions

Functions:
check_routine_name()
check_string_byte_length()
check_string_char_length()
check_ident_length()
This commit is contained in:
Alexander Barkov
2017-08-04 14:41:05 +04:00
parent 68bc777830
commit 9b74b00c8e
4 changed files with 8 additions and 8 deletions

View File

@@ -73,12 +73,12 @@ LEX_USER *create_default_definer(THD *thd, bool role);
LEX_USER *create_definer(THD *thd, LEX_CSTRING *user_name, LEX_CSTRING *host_name);
LEX_USER *get_current_user(THD *thd, LEX_USER *user, bool lock=true);
bool sp_process_definer(THD *thd);
bool check_string_byte_length(LEX_CSTRING *str, uint err_msg,
bool check_string_byte_length(const LEX_CSTRING *str, uint err_msg,
uint max_byte_length);
bool check_string_char_length(LEX_CSTRING *str, uint err_msg,
bool check_string_char_length(const LEX_CSTRING *str, uint err_msg,
uint max_char_length, CHARSET_INFO *cs,
bool no_error);
bool check_ident_length(LEX_CSTRING *ident);
bool check_ident_length(const LEX_CSTRING *ident);
CHARSET_INFO* merge_charset_and_collation(CHARSET_INFO *cs, CHARSET_INFO *cl);
CHARSET_INFO *find_bin_collation(CHARSET_INFO *cs);
bool check_host_name(LEX_CSTRING *str);