~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.h

  • Committer: Olaf van der Spek
  • Date: 2011-04-05 12:26:58 UTC
  • mto: (2278.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2272.
  • Revision ID: olafvdspek@gmail.com-20110405122658-xxrvmobwwwwf3oct
Refactor Open_tables_state

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
 
31
30
#include <drizzled/error_t.h>
32
31
#include <drizzled/visibility.h>
33
32
 
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;
 
33
namespace drizzled {
46
34
 
47
35
DRIZZLED_API const std::string &getCommandName(const enum_server_command& command);
48
36
 
61
49
bool check_string_byte_length(LEX_STRING *str, const char *err_msg,
62
50
                              uint32_t max_byte_length);
63
51
bool check_string_char_length(LEX_STRING *str, const char *err_msg,
64
 
                              uint32_t max_char_length, const CHARSET_INFO * const cs,
 
52
                              uint32_t max_char_length, const charset_info_st * const cs,
65
53
                              bool no_error);
66
54
 
67
55
 
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 */