~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.h

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
mergeĀ lp:~olafvdspek/drizzle/refactor5

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_SQL_PARSE_H
21
 
#define DRIZZLED_SQL_PARSE_H
 
20
#pragma once
22
21
 
23
22
#include <string>
24
23
 
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"
33
 
 
34
 
namespace drizzled
35
 
{
36
 
 
37
 
class Session;
38
 
class TableList;
39
 
class Lex_input_stream;
40
 
class Item;
41
 
class LEX;
42
 
class Table_ident;
43
 
class Select_Lex;
44
 
 
45
 
typedef struct charset_info_st CHARSET_INFO;
 
24
#include <drizzled/definitions.h>
 
25
#include <drizzled/common.h>
 
26
#include <drizzled/lex_string.h>
 
27
#include <drizzled/comp_creator.h>
 
28
#include <drizzled/identifier.h>
 
29
 
 
30
#include <drizzled/error_t.h>
 
31
#include <drizzled/visibility.h>
 
32
 
 
33
namespace drizzled {
46
34
 
47
35
DRIZZLED_API const std::string &getCommandName(const enum_server_command& command);
48
36
 
54
42
 
55
43
Item *negate_expression(Session *session, Item *expr);
56
44
 
57
 
bool check_identifier_name(LEX_STRING *str, error_t err_code= EE_OK,
 
45
bool check_identifier_name(lex_string_t *str, error_t err_code= EE_OK,
58
46
                           uint32_t max_char_length= NAME_CHAR_LEN,
59
47
                           const char *param_for_err_msg= "");
60
48
 
61
 
bool check_string_byte_length(LEX_STRING *str, const char *err_msg,
 
49
bool check_string_byte_length(lex_string_t *str, const char *err_msg,
62
50
                              uint32_t max_byte_length);
63
 
bool check_string_char_length(LEX_STRING *str, const char *err_msg,
64
 
                              uint32_t max_char_length, const CHARSET_INFO * const cs,
 
51
bool check_string_char_length(lex_string_t *str, const char *err_msg,
 
52
                              uint32_t max_char_length, const charset_info_st * const cs,
65
53
                              bool no_error);
66
54
 
67
55
 
74
62
 
75
63
void init_update_queries(void);
76
64
 
77
 
bool dispatch_command(enum enum_server_command command, Session *session,
78
 
                      char* packet, uint32_t packet_length);
 
65
bool dispatch_command(enum enum_server_command command, Session* session,
 
66
                      const char* packet, uint32_t packet_length);
79
67
 
80
68
bool check_simple_select(Session* session);
81
69
 
82
70
void init_select(LEX *lex);
83
71
bool new_select(LEX *lex, bool move_down);
84
72
 
85
 
int prepare_new_schema_table(Session *session, LEX *lex,
86
 
                             const std::string& schema_table_name);
 
73
int prepare_new_schema_table(Session*, LEX&, const std::string& schema_table_name);
87
74
 
88
75
Item * all_any_subquery_creator(Item *left_expr,
89
76
                                chooser_compare_func_creator cmp,
94
81
 
95
82
} /* namespace drizzled */
96
83
 
97
 
#endif /* DRIZZLED_SQL_PARSE_H */