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:
@ -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)
|
||||
|
Reference in New Issue
Block a user