33
32
namespace drizzled {
35
DRIZZLED_API const std::string &getCommandName(const enum_server_command& command);
37
bool execute_sqlcom_select(Session *session, TableList *all_tables);
38
bool insert_select_prepare(Session *session);
39
bool update_precheck(Session *session, TableList *tables);
40
bool delete_precheck(Session *session, TableList *tables);
41
bool insert_precheck(Session *session, TableList *tables);
43
Item *negate_expression(Session *session, Item *expr);
45
bool check_identifier_name(lex_string_t str, error_t err_code= EE_OK);
47
bool check_string_byte_length(lex_string_t *str, const char *err_msg,
48
uint32_t max_byte_length);
49
bool check_string_char_length(lex_string_t *str, const char *err_msg,
50
uint32_t max_char_length, const charset_info_st * const cs,
54
bool test_parse_for_slave(Session *session, char *inBuf,
57
void reset_session_for_next_command(Session *session);
59
void create_select_for_variable(Session *session, const char *var_name);
61
void init_update_queries(void);
63
bool dispatch_command(enum enum_server_command command, Session* session,
64
const char* packet, uint32_t packet_length);
66
bool check_simple_select(Session* session);
68
void init_select(LEX *lex);
69
bool new_select(LEX *lex, bool move_down);
34
DRIZZLED_API const std::string& getCommandName(const enum_server_command& command);
36
bool execute_sqlcom_select(Session*, TableList *all_tables);
37
bool insert_select_prepare(Session*);
38
bool update_precheck(Session*, TableList *tables);
39
bool delete_precheck(Session*, TableList *tables);
40
bool insert_precheck(Session*, TableList *tables);
42
Item *negate_expression(Session*, Item *expr);
44
bool check_identifier_name(str_ref, error_t err_code= EE_OK);
46
bool check_string_byte_length(str_ref, const char *err_msg, uint32_t max_byte_length);
47
bool check_string_char_length(str_ref, const char *err_msg, uint32_t max_char_length, const charset_info_st*, bool no_error);
49
bool test_parse_for_slave(Session*, char *inBuf, uint32_t length);
51
void reset_session_for_next_command(Session*);
53
void create_select_for_variable(Session*, const char *var_name);
55
void init_update_queries();
57
bool dispatch_command(enum_server_command command, Session*, const char* packet, uint32_t packet_length);
59
bool check_simple_select(Session*);
61
void init_select(LEX*);
62
bool new_select(LEX*, bool move_down);
71
64
int prepare_new_schema_table(Session*, LEX&, const std::string& schema_table_name);