~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.h

  • Committer: Brian Aker
  • Date: 2010-12-25 00:28:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2031.
  • Revision ID: brian@tangent.org-20101225002849-g73mg6ihulajis0o
First pass in refactoring of the name of my_decimal.

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 <string>
24
 
 
25
23
#include "drizzled/definitions.h"
26
24
#include "drizzled/common.h"
27
25
#include "drizzled/lex_string.h"
28
26
#include "drizzled/comp_creator.h"
29
27
#include "drizzled/identifier.h"
30
28
 
31
 
#include "drizzled/error_t.h"
32
 
#include "drizzled/visibility.h"
33
 
 
34
29
namespace drizzled
35
30
{
36
31
 
44
39
 
45
40
typedef struct charset_info_st CHARSET_INFO;
46
41
 
47
 
DRIZZLED_API const std::string &getCommandName(const enum_server_command& command);
 
42
extern const LEX_STRING command_name[];
48
43
 
49
44
bool execute_sqlcom_select(Session *session, TableList *all_tables);
50
45
bool insert_select_prepare(Session *session);
54
49
 
55
50
Item *negate_expression(Session *session, Item *expr);
56
51
 
57
 
bool check_identifier_name(LEX_STRING *str, error_t err_code= EE_OK,
 
52
bool check_identifier_name(LEX_STRING *str, uint32_t err_code= 0,
58
53
                           uint32_t max_char_length= NAME_CHAR_LEN,
59
54
                           const char *param_for_err_msg= "");
60
55
 
70
65
 
71
66
void reset_session_for_next_command(Session *session);
72
67
 
73
 
void create_select_for_variable(Session *session, const char *var_name);
 
68
void create_select_for_variable(const char *var_name);
74
69
 
75
70
void init_update_queries(void);
76
71
 
77
72
bool dispatch_command(enum enum_server_command command, Session *session,
78
73
                      char* packet, uint32_t packet_length);
79
74
 
80
 
bool check_simple_select(Session* session);
 
75
bool check_simple_select();
81
76
 
82
77
void init_select(LEX *lex);
83
78
bool new_select(LEX *lex, bool move_down);