20
20
#ifndef DRIZZLE_SERVER_SQL_PARSE_H
21
21
#define DRIZZLE_SERVER_SQL_PARSE_H
23
bool begin_trans(Session *thd);
24
bool end_active_trans(Session *thd);
25
int end_trans(Session *thd, enum enum_mysql_completiontype completion);
23
bool begin_trans(Session *session);
24
bool end_active_trans(Session *session);
25
int end_trans(Session *session, enum enum_mysql_completiontype completion);
27
bool execute_sqlcom_select(Session *thd, TableList *all_tables);
28
bool multi_update_precheck(Session *thd, TableList *tables);
29
bool multi_delete_precheck(Session *thd, TableList *tables);
30
int mysql_multi_update_prepare(Session *thd);
31
int mysql_multi_delete_prepare(Session *thd);
32
bool mysql_insert_select_prepare(Session *thd);
33
bool update_precheck(Session *thd, TableList *tables);
34
bool delete_precheck(Session *thd, TableList *tables);
35
bool insert_precheck(Session *thd, TableList *tables);
36
bool create_table_precheck(Session *thd, TableList *tables,
27
bool execute_sqlcom_select(Session *session, TableList *all_tables);
28
bool multi_update_precheck(Session *session, TableList *tables);
29
bool multi_delete_precheck(Session *session, TableList *tables);
30
int mysql_multi_update_prepare(Session *session);
31
int mysql_multi_delete_prepare(Session *session);
32
bool mysql_insert_select_prepare(Session *session);
33
bool update_precheck(Session *session, TableList *tables);
34
bool delete_precheck(Session *session, TableList *tables);
35
bool insert_precheck(Session *session, TableList *tables);
36
bool create_table_precheck(Session *session, TableList *tables,
37
37
TableList *create_table);
38
bool parse_sql(Session *thd, class Lex_input_stream *lip);
38
bool parse_sql(Session *session, class Lex_input_stream *lip);
40
Item *negate_expression(Session *thd, Item *expr);
40
Item *negate_expression(Session *session, Item *expr);
42
42
bool test_if_data_home_dir(const char *dir);