1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-03 05:41:09 +03:00

MDEV-9058: protocol: COM_MULTI command (part 3)

Support of "previuousely used statement ID".
All IDs with highest bit ON reserved for special use.
This commit is contained in:
Oleksandr Byelkin
2016-01-07 16:00:02 +01:00
parent fd1b7d0f59
commit 2f7b6c5751
6 changed files with 30 additions and 5 deletions

View File

@@ -1965,6 +1965,13 @@ public:
/* all prepared statements and cursors of this connection */
Statement_map stmt_map;
/* Last created prepared statement */
Statement *last_stmt;
inline void set_last_stmt(Statement *stmt)
{ last_stmt= (is_error() ? NULL : stmt); }
inline void clear_last_stmt() { last_stmt= NULL; }
/*
A pointer to the stack frame of handle_one_connection(),
which is called first in the thread for handling a client