diff --git a/src/dsql/misc_func.cpp b/src/dsql/misc_func.cpp index 38b6bd3513..4e0e09488b 100644 --- a/src/dsql/misc_func.cpp +++ b/src/dsql/misc_func.cpp @@ -36,7 +36,7 @@ const InternalInfo::InfoAttr InternalInfo::attr_array[max_internal_id] = { {"INSERTING/UPDATING/DELETING", REQ_trigger} }; -char* InternalInfo::getAlias(internal_info_id info_id) +const char* InternalInfo::getAlias(internal_info_id info_id) { return attr_array[info_id].alias_name; } diff --git a/src/dsql/misc_func.h b/src/dsql/misc_func.h index 87766fe451..36948ddaba 100644 --- a/src/dsql/misc_func.h +++ b/src/dsql/misc_func.h @@ -28,12 +28,12 @@ class InternalInfo { private: struct InfoAttr { - char* alias_name; + const char* alias_name; unsigned short req_mask; }; static const InfoAttr attr_array[max_internal_id]; public: - static char *getAlias(internal_info_id); + static const char* getAlias(internal_info_id); static USHORT getMask(internal_info_id); };