1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

fix c++98 build

This commit is contained in:
Nikita Malyavin
2020-07-21 23:12:32 +10:00
parent 5acd391e8b
commit ebca70ead3
4 changed files with 8 additions and 8 deletions

View File

@ -951,9 +951,9 @@ public:
enum_state state;
/* We build without RTTI, so dynamic_cast can't be used. */
enum class Type
enum Type
{
STATEMENT, PREPARED_STATEMENT, STORED_PROCEDURE, TABLE
STATEMENT, PREPARED_STATEMENT, STORED_PROCEDURE, TABLE_ARENA
};
Query_arena(MEM_ROOT *mem_root_arg, enum enum_state state_arg) :
@ -3658,7 +3658,7 @@ public:
bool is_item_tree_change_register_required()
{
return !stmt_arena->is_conventional()
|| stmt_arena->type() == Query_arena::Type::TABLE;
|| stmt_arena->type() == Query_arena::TABLE_ARENA;
}
void change_item_tree(Item **place, Item *new_value)