~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.h

  • Committer: Andrew Hutchings
  • Date: 2011-02-01 10:23:22 UTC
  • mto: (2136.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2137.
  • Revision ID: andrew@linuxjedi.co.uk-20110201102322-oxztcyrjzg3c7yta
Fix counters cleanup

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
 
#pragma once
 
20
#ifndef DRIZZLED_SQL_PARSE_H
 
21
#define DRIZZLED_SQL_PARSE_H
21
22
 
22
23
#include <string>
23
24
 
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 {
 
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;
34
46
 
35
47
DRIZZLED_API const std::string &getCommandName(const enum_server_command& command);
36
48
 
49
61
bool check_string_byte_length(LEX_STRING *str, const char *err_msg,
50
62
                              uint32_t max_byte_length);
51
63
bool check_string_char_length(LEX_STRING *str, const char *err_msg,
52
 
                              uint32_t max_char_length, const charset_info_st * const cs,
 
64
                              uint32_t max_char_length, const CHARSET_INFO * const cs,
53
65
                              bool no_error);
54
66
 
55
67
 
58
70
 
59
71
void reset_session_for_next_command(Session *session);
60
72
 
61
 
void create_select_for_variable(Session *session, const char *var_name);
 
73
void create_select_for_variable(const char *var_name);
62
74
 
63
75
void init_update_queries(void);
64
76
 
70
82
void init_select(LEX *lex);
71
83
bool new_select(LEX *lex, bool move_down);
72
84
 
73
 
int prepare_new_schema_table(Session*, LEX&, const std::string& schema_table_name);
 
85
int prepare_new_schema_table(Session *session, LEX *lex,
 
86
                             const std::string& schema_table_name);
74
87
 
75
88
Item * all_any_subquery_creator(Item *left_expr,
76
89
                                chooser_compare_func_creator cmp,
81
94
 
82
95
} /* namespace drizzled */
83
96
 
 
97
#endif /* DRIZZLED_SQL_PARSE_H */