summaryrefslogtreecommitdiff
path: root/sql/sql_parse.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-08-04 14:41:05 +0400
committerAlexander Barkov <bar@mariadb.org>2017-08-04 14:41:05 +0400
commit9b74b00c8e7ab3ed584097f390e5432c18fe3305 (patch)
treea0700a84f4de78d31d854d1c5f062b62bf322c6b /sql/sql_parse.h
parent68bc777830dc7295a6df38929bf5884ee8669add (diff)
downloadmariadb-git-9b74b00c8e7ab3ed584097f390e5432c18fe3305.tar.gz
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()
Diffstat (limited to 'sql/sql_parse.h')
-rw-r--r--sql/sql_parse.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_parse.h b/sql/sql_parse.h
index c97d824ffa1..b8d7bb46e08 100644
--- a/sql/sql_parse.h
+++ b/sql/sql_parse.h
@@ -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);