mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed small error in types in sql/field.cc
(char * -> const char*)
This commit is contained in:
@ -4721,7 +4721,7 @@ String *Field_enum::val_str(String *val_buffer __attribute__((unused)),
|
|||||||
{
|
{
|
||||||
uint tmp=(uint) Field_enum::val_int();
|
uint tmp=(uint) Field_enum::val_int();
|
||||||
if (!tmp || tmp > typelib->count)
|
if (!tmp || tmp > typelib->count)
|
||||||
val_ptr->set((char*)"",0);
|
val_ptr->set((const char*)"",0);
|
||||||
else
|
else
|
||||||
val_ptr->set((const char*) typelib->type_names[tmp-1],
|
val_ptr->set((const char*) typelib->type_names[tmp-1],
|
||||||
(uint) strlen(typelib->type_names[tmp-1]));
|
(uint) strlen(typelib->type_names[tmp-1]));
|
||||||
|
Reference in New Issue
Block a user