summaryrefslogtreecommitdiff
path: root/sql/item_create.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2022-04-04 09:45:29 +0400
committerAlexander Barkov <bar@mariadb.com>2022-04-04 09:50:32 +0400
commit0ffaf19c53ccd102a369016cd01dec38ee9ac5a7 (patch)
treefec92162177910c8f1c03159999de7e70e0a273c /sql/item_create.h
parentd271fbd392b02ff8b98d552aef7164270c9d66fd (diff)
downloadmariadb-git-0ffaf19c53ccd102a369016cd01dec38ee9ac5a7.tar.gz
Adding a "const" qualifier to arguments of create_func(), create_native() etc
The "const" qualifier was obviously forgotten. This change will also simpily fixing of MDEV-27744.
Diffstat (limited to 'sql/item_create.h')
-rw-r--r--sql/item_create.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/sql/item_create.h b/sql/item_create.h
index 7e92016ab96..894e9777b8d 100644
--- a/sql/item_create.h
+++ b/sql/item_create.h
@@ -58,7 +58,8 @@ public:
@param item_list The list of arguments to the function, can be NULL
@return An item representing the parsed function call, or NULL
*/
- virtual Item *create_func(THD *thd, LEX_CSTRING *name, List<Item> *item_list) = 0;
+ virtual Item *create_func(THD *thd, const LEX_CSTRING *name,
+ List<Item> *item_list) = 0;
protected:
/** Constructor */
@@ -79,7 +80,7 @@ protected:
class Create_native_func : public Create_func
{
public:
- virtual Item *create_func(THD *thd, LEX_CSTRING *name,
+ virtual Item *create_func(THD *thd, const LEX_CSTRING *name,
List<Item> *item_list);
/**
@@ -89,7 +90,7 @@ public:
@param item_list The function parameters, none of which are named
@return An item representing the function call
*/
- virtual Item *create_native(THD *thd, LEX_CSTRING *name,
+ virtual Item *create_native(THD *thd, const LEX_CSTRING *name,
List<Item> *item_list) = 0;
protected:
@@ -117,7 +118,7 @@ public:
@param item_list The list of arguments to the function, can be NULL
@return An item representing the parsed function call
*/
- virtual Item *create_func(THD *thd, LEX_CSTRING *name,
+ virtual Item *create_func(THD *thd, const LEX_CSTRING *name,
List<Item> *item_list);
/**
@@ -129,7 +130,9 @@ public:
@param item_list The list of arguments to the function, can be NULL
@return An item representing the parsed function call
*/
- virtual Item *create_with_db(THD *thd, LEX_CSTRING *db, LEX_CSTRING *name,
+ virtual Item *create_with_db(THD *thd,
+ const LEX_CSTRING *db,
+ const LEX_CSTRING *name,
bool use_explicit_name,
List<Item> *item_list) = 0;
@@ -167,7 +170,7 @@ extern Create_qfunc * find_qualified_function_builder(THD *thd);
class Create_udf_func : public Create_func
{
public:
- virtual Item *create_func(THD *thd, LEX_CSTRING *name,
+ virtual Item *create_func(THD *thd, const LEX_CSTRING *name,
List<Item> *item_list);
/**