~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.h

  • Committer: Patrick Galbraith
  • Date: 2009-10-08 22:42:05 UTC
  • mto: (1166.5.3 memcached_functions)
  • mto: This revision was merged to the branch mainline in revision 1189.
  • Revision ID: patg@patrick-galbraiths-macbook-pro.local-20091008224205-gq1pehjsivvx0qo9
Starting over with a fresh tree, moved in memcached functions.

Memcached Functions for Drizzle. 

All tests pass.

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
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"
28
 
 
29
 
namespace drizzled
30
 
{
 
20
#ifndef DRIZZLE_SERVER_SQL_PARSE_H
 
21
#define DRIZZLE_SERVER_SQL_PARSE_H
 
22
 
 
23
#include <stdint.h>
 
24
 
 
25
#include <drizzled/definitions.h>
 
26
#include <drizzled/common.h>
 
27
#include <drizzled/lex_string.h>
 
28
#include <drizzled/comp_creator.h>
 
29
 
 
30
#include <mystrings/m_ctype.h>
31
31
 
32
32
class Session;
33
33
class TableList;
35
35
class Item;
36
36
class LEX;
37
37
class Table_ident;
38
 
class Select_Lex;
39
 
 
40
 
typedef struct charset_info_st CHARSET_INFO;
41
 
 
42
 
extern const LEX_STRING command_name[];
43
38
 
44
39
bool execute_sqlcom_select(Session *session, TableList *all_tables);
45
40
bool mysql_insert_select_prepare(Session *session);
46
41
bool update_precheck(Session *session, TableList *tables);
47
42
bool delete_precheck(Session *session, TableList *tables);
48
43
bool insert_precheck(Session *session, TableList *tables);
 
44
bool create_table_precheck(Session *session, TableList *tables,
 
45
                           TableList *create_table);
 
46
bool parse_sql(Session *session, Lex_input_stream *lip);
49
47
 
50
48
Item *negate_expression(Session *session, Item *expr);
51
49
 
 
50
bool test_if_data_home_dir(const char *dir);
 
51
 
52
52
bool check_identifier_name(LEX_STRING *str, uint32_t err_code= 0,
53
53
                           uint32_t max_char_length= NAME_CHAR_LEN,
54
54
                           const char *param_for_err_msg= "");
60
60
                              bool no_error);
61
61
 
62
62
 
 
63
void mysql_parse(Session *session, const char *inBuf, uint32_t length,
 
64
                 const char ** semicolon);
 
65
 
63
66
bool mysql_test_parse_for_slave(Session *session, char *inBuf,
64
67
                                uint32_t length);
65
68
 
 
69
bool is_update_query(enum enum_sql_command command);
 
70
 
66
71
void mysql_reset_session_for_next_command(Session *session);
67
72
 
68
73
void create_select_for_variable(const char *var_name);
77
82
void mysql_init_select(LEX *lex);
78
83
bool mysql_new_select(LEX *lex, bool move_down);
79
84
 
80
 
int prepare_new_schema_table(Session *session, LEX *lex,
81
 
                             const std::string& schema_table_name);
 
85
int prepare_schema_table(Session *session, LEX *lex, Table_ident *table_ident,
 
86
                         const std::string& schema_table_name);
82
87
 
83
88
Item * all_any_subquery_creator(Item *left_expr,
84
89
                                chooser_compare_func_creator cmp,
85
90
                                bool all,
86
91
                                Select_Lex *select_lex);
87
92
 
88
 
char* query_table_status(Session *session,const char *db,const char *table_name);
89
 
 
90
 
} /* namespace drizzled */
91
 
 
92
 
#endif /* DRIZZLED_SQL_PARSE_H */
 
93
#endif /* DRIZZLE_SERVER_SQL_PARSE_H */