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

MDEV-10597 Cursors with parameters

This commit is contained in:
Alexander Barkov
2016-10-21 11:51:49 +04:00
parent 4ed804aa4d
commit f8a714c848
15 changed files with 1602 additions and 218 deletions

View File

@ -55,6 +55,7 @@
#include <mysys_err.h>
#include <limits.h>
#include "sp_head.h"
#include "sp_rcontext.h"
#include "sp_cache.h"
#include "transaction.h"
@ -1323,7 +1324,17 @@ void THD::init(void)
DBUG_VOID_RETURN;
}
bool THD::restore_from_local_lex_to_old_lex(LEX *oldlex)
{
DBUG_ASSERT(lex->sphead);
if (lex->sphead->merge_lex(this, oldlex, lex))
return true;
lex= oldlex;
return false;
}
/* Updates some status variables to be used by update_global_user_stats */
void THD::update_stats(void)