76
76
extern const CHARSET_INFO *system_charset_info, *files_charset_info ;
77
77
extern const CHARSET_INFO *national_charset_info, *table_alias_charset;
79
extern pthread_key(Session*, THR_Session);
79
extern pthread_key_t THR_Session;
80
80
inline Session *_current_session(void)
82
82
return (Session *)pthread_getspecific(THR_Session);
84
84
#define current_session _current_session()
86
extern "C" void set_session_proc_info(Session *session, const char *info);
87
extern "C" const char *get_session_proc_info(Session *session);
104
101
#include "protocol.h"
105
102
#include "item.h"
107
extern my_decimal decimal_zero;
109
/** @TODO Find a good header to put this guy... */
110
void close_thread_tables(Session *session);
112
105
#include <drizzled/sql_parse.h>
114
107
#include "sql_class.h"
115
#include "slave.h" // for tables_ok(), rpl_filter
117
void sql_perror(const char *message);
119
bool fn_format_relative_to_data_home(char * to, const char *name,
120
const char *dir, const char *extension);
125
* This is much better than the previous situation of a crap-ton
126
* of conditional defines all over mysql_priv.h, but this still
127
* is hackish. Put these things into a separate header? Or fix
128
* InnoDB? Or does the InnoDB plugin already fix this stuff?
130
#if defined DRIZZLE_SERVER || defined INNODB_COMPATIBILITY_HOOKS
131
bool check_global_access(Session *session, ulong want_access);
132
int get_quote_char_for_identifier(Session *session, const char *name,
134
extern struct system_variables global_system_variables;
135
extern uint32_t mysql_data_home_len;
136
extern char *mysql_data_home,server_version[SERVER_VERSION_LENGTH],
137
mysql_real_data_home[], mysql_unpacked_real_data_home[];
138
extern const CHARSET_INFO *character_set_filesystem;
139
extern char reg_ext[FN_EXTLEN];
140
extern uint32_t reg_ext_length;
141
extern ulong specialflag;
142
extern uint32_t lower_case_table_names;
143
uint32_t strconvert(const CHARSET_INFO *from_cs, const char *from,
144
const CHARSET_INFO *to_cs, char *to, uint32_t to_length,
146
uint32_t filename_to_tablename(const char *from, char *to, uint32_t to_length);
147
uint32_t tablename_to_filename(const char *from, char *to, uint32_t to_length);
148
#endif /* DRIZZLE_SERVER || INNODB_COMPATIBILITY_HOOKS */
151
110
#endif /* DRIZZLE_SERVER_COMMON_INCLUDES_H */