~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.h

  • Committer: Monty Taylor
  • Date: 2011-03-08 23:35:47 UTC
  • mfrom: (2224.2.9 statement2)
  • mto: This revision was merged to the branch mainline in revision 2227.
  • Revision ID: mordred@inaugust.com-20110308233547-w2s3tm5svzv339dp
Merged Olaf - Statement refactor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_SQL_PARSE_H
21
21
#define DRIZZLED_SQL_PARSE_H
22
22
 
23
 
#include "drizzled/definitions.h"
24
 
#include "drizzled/common.h"
25
 
#include "drizzled/lex_string.h"
26
 
#include "drizzled/comp_creator.h"
27
 
#include "drizzled/identifier.h"
 
23
#include <string>
 
24
 
 
25
#include <drizzled/definitions.h>
 
26
#include <drizzled/common.h>
 
27
#include <drizzled/lex_string.h>
 
28
#include <drizzled/comp_creator.h>
 
29
#include <drizzled/identifier.h>
 
30
 
 
31
#include <drizzled/error_t.h>
 
32
#include <drizzled/visibility.h>
28
33
 
29
34
namespace drizzled
30
35
{
39
44
 
40
45
typedef struct charset_info_st CHARSET_INFO;
41
46
 
42
 
extern const LEX_STRING command_name[];
 
47
DRIZZLED_API const std::string &getCommandName(const enum_server_command& command);
43
48
 
44
49
bool execute_sqlcom_select(Session *session, TableList *all_tables);
45
 
bool mysql_insert_select_prepare(Session *session);
 
50
bool insert_select_prepare(Session *session);
46
51
bool update_precheck(Session *session, TableList *tables);
47
52
bool delete_precheck(Session *session, TableList *tables);
48
53
bool insert_precheck(Session *session, TableList *tables);
49
54
 
50
55
Item *negate_expression(Session *session, Item *expr);
51
56
 
52
 
bool check_identifier_name(LEX_STRING *str, uint32_t err_code= 0,
 
57
bool check_identifier_name(LEX_STRING *str, error_t err_code= EE_OK,
53
58
                           uint32_t max_char_length= NAME_CHAR_LEN,
54
59
                           const char *param_for_err_msg= "");
55
60
 
60
65
                              bool no_error);
61
66
 
62
67
 
63
 
bool mysql_test_parse_for_slave(Session *session, char *inBuf,
 
68
bool test_parse_for_slave(Session *session, char *inBuf,
64
69
                                uint32_t length);
65
70
 
66
 
void mysql_reset_session_for_next_command(Session *session);
 
71
void reset_session_for_next_command(Session *session);
67
72
 
68
 
void create_select_for_variable(const char *var_name);
 
73
void create_select_for_variable(Session *session, const char *var_name);
69
74
 
70
75
void init_update_queries(void);
71
76
 
72
77
bool dispatch_command(enum enum_server_command command, Session *session,
73
78
                      char* packet, uint32_t packet_length);
74
79
 
75
 
bool check_simple_select();
 
80
bool check_simple_select(Session* session);
76
81
 
77
 
void mysql_init_select(LEX *lex);
78
 
bool mysql_new_select(LEX *lex, bool move_down);
 
82
void init_select(LEX *lex);
 
83
bool new_select(LEX *lex, bool move_down);
79
84
 
80
85
int prepare_new_schema_table(Session *session, LEX *lex,
81
86
                             const std::string& schema_table_name);