~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.h

  • Committer: Mark Atwood
  • Date: 2011-10-19 00:10:47 UTC
  • mfrom: (2440.2.13 rf)
  • Revision ID: me@mark.atwood.name-20111019001047-atj0u8gedphon1tb
mergeĀ lp:~olafvdspek/drizzle/refactor5

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/definitions.h>
25
25
#include <drizzled/common.h>
26
 
#include <drizzled/lex_string.h>
27
26
#include <drizzled/comp_creator.h>
28
27
#include <drizzled/identifier.h>
29
28
 
32
31
 
33
32
namespace drizzled {
34
33
 
35
 
DRIZZLED_API const std::string &getCommandName(const enum_server_command& command);
36
 
 
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);
42
 
 
43
 
Item *negate_expression(Session *session, Item *expr);
44
 
 
45
 
bool check_identifier_name(lex_string_t str, error_t err_code= EE_OK);
46
 
 
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,
51
 
                              bool no_error);
52
 
 
53
 
 
54
 
bool test_parse_for_slave(Session *session, char *inBuf,
55
 
                                uint32_t length);
56
 
 
57
 
void reset_session_for_next_command(Session *session);
58
 
 
59
 
void create_select_for_variable(Session *session, const char *var_name);
60
 
 
61
 
void init_update_queries(void);
62
 
 
63
 
bool dispatch_command(enum enum_server_command command, Session* session,
64
 
                      const char* packet, uint32_t packet_length);
65
 
 
66
 
bool check_simple_select(Session* session);
67
 
 
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);
 
35
 
 
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);
 
41
 
 
42
Item *negate_expression(Session*, Item *expr);
 
43
 
 
44
bool check_identifier_name(str_ref, error_t err_code= EE_OK);
 
45
 
 
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);
 
48
 
 
49
bool test_parse_for_slave(Session*, char *inBuf, uint32_t length);
 
50
 
 
51
void reset_session_for_next_command(Session*);
 
52
 
 
53
void create_select_for_variable(Session*, const char *var_name);
 
54
 
 
55
void init_update_queries();
 
56
 
 
57
bool dispatch_command(enum_server_command command, Session*, const char* packet, uint32_t packet_length);
 
58
 
 
59
bool check_simple_select(Session*);
 
60
 
 
61
void init_select(LEX*);
 
62
bool new_select(LEX*, bool move_down);
70
63
 
71
64
int prepare_new_schema_table(Session*, LEX&, const std::string& schema_table_name);
72
65
 
75
68
                                bool all,
76
69
                                Select_Lex *select_lex);
77
70
 
78
 
char* query_table_status(Session *session,const char *db,const char *table_name);
 
71
char* query_table_status(Session*,const char *db,const char *table_name);
79
72
 
80
73
} /* namespace drizzled */
81
74