mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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.
This commit is contained in:
@ -29,7 +29,8 @@ template <TR_table::field_id_t TRT_FIELD>
|
||||
class Create_func_trt : public Create_native_func
|
||||
{
|
||||
public:
|
||||
virtual Item *create_native(THD *thd, LEX_CSTRING *name, List<Item> *item_list);
|
||||
virtual Item *create_native(THD *thd, const LEX_CSTRING *name,
|
||||
List<Item> *item_list);
|
||||
|
||||
static Create_func_trt<TRT_FIELD> s_singleton;
|
||||
|
||||
@ -43,7 +44,7 @@ Create_func_trt<TRT_FIELD> Create_func_trt<TRT_FIELD>::s_singleton;
|
||||
|
||||
template <TR_table::field_id_t TRT_FIELD>
|
||||
Item*
|
||||
Create_func_trt<TRT_FIELD>::create_native(THD *thd, LEX_CSTRING *name,
|
||||
Create_func_trt<TRT_FIELD>::create_native(THD *thd, const LEX_CSTRING *name,
|
||||
List<Item> *item_list)
|
||||
{
|
||||
Item *func= NULL;
|
||||
@ -102,7 +103,8 @@ template <class Item_func_trt_trx_seesX>
|
||||
class Create_func_trt_trx_sees : public Create_native_func
|
||||
{
|
||||
public:
|
||||
virtual Item *create_native(THD *thd, LEX_CSTRING *name, List<Item> *item_list)
|
||||
virtual Item *create_native(THD *thd, const LEX_CSTRING *name,
|
||||
List<Item> *item_list)
|
||||
{
|
||||
Item *func= NULL;
|
||||
int arg_count= 0;
|
||||
|
Reference in New Issue
Block a user