32
32
#include <mysys/thr_alarm.h>
33
33
#include <mysys/mysys_err.h>
34
34
#include <drizzled/error.h>
35
#include <drizzled/innodb_plugin_extras.h>
36
35
#include <drizzled/query_id.h>
36
#include <drizzled/data_home.h>
38
38
extern scheduler_functions thread_scheduler;
603
603
m_internal_handler= NULL;
606
#if defined(__cplusplus)
607
610
void *session_alloc(Session *session, unsigned int size)
609
612
return session->alloc(size);
613
615
void *session_calloc(Session *session, unsigned int size)
615
617
return session->calloc(size);
619
620
char *session_strdup(Session *session, const char *str)
621
622
return session->strdup(str);
625
625
char *session_strmake(Session *session, const char *str, unsigned int size)
627
627
return session->strmake(str, size);
631
LEX_STRING *session_make_lex_string(Session *session, LEX_STRING *lex_str,
632
const char *str, unsigned int size,
633
int allocate_lex_string)
635
return session->make_lex_string(lex_str, str, size,
636
(bool) allocate_lex_string);
640
630
void *session_memdup(Session *session, const void* str, unsigned int size)
642
632
return session->memdup(str, size);
646
635
void session_get_xid(const Session *session, DRIZZLE_XID *xid)
648
637
*xid = *(DRIZZLE_XID *) &session->transaction.xid_state.xid;
640
#if defined(__cplusplus)
652
645
Init common variables that has to be reset on start and on change_user
2253
#ifdef INNODB_COMPATIBILITY_HOOKS
2247
LEX_STRING *session_make_lex_string(Session *session, LEX_STRING *lex_str,
2248
const char *str, unsigned int size,
2249
int allocate_lex_string)
2251
return session->make_lex_string(lex_str, str, size,
2252
(bool) allocate_lex_string);
2254
2255
extern "C" const struct charset_info_st *session_charset(Session *session)
2256
2257
return(session->charset());