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

SQL(misc): Query_arena_stmt RAII

This commit is contained in:
Aleksey Midenkov
2017-04-27 10:24:16 +03:00
parent 1e8a81dea6
commit 122ffa2211
4 changed files with 32 additions and 12 deletions

View File

@ -1024,6 +1024,22 @@ public:
};
class Query_arena_stmt
{
THD *thd;
Query_arena backup;
Query_arena *arena;
public:
Query_arena_stmt(THD *_thd);
~Query_arena_stmt();
bool arena_replaced()
{
return arena != NULL;
}
};
class Server_side_cursor;
/**