~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.h

  • Committer: Patrick Crews
  • Date: 2010-12-07 20:02:50 UTC
  • Revision ID: gleebix@gmail.com-20101207200250-6a27jgqalgw5bsb5
Added disabled.def file to disable drizzleslap due to Bug#684269.  Need to skip for tarball release this round

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
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
 
bool insert_select_prepare(Session *session);
 
45
bool mysql_insert_select_prepare(Session *session);
51
46
bool update_precheck(Session *session, TableList *tables);
52
47
bool delete_precheck(Session *session, TableList *tables);
53
48
bool insert_precheck(Session *session, TableList *tables);
 
49
bool create_table_precheck(TableIdentifier &identifier);
54
50
 
55
51
Item *negate_expression(Session *session, Item *expr);
56
52
 
57
 
bool check_identifier_name(LEX_STRING *str, error_t err_code= EE_OK,
 
53
bool check_identifier_name(LEX_STRING *str, uint32_t err_code= 0,
58
54
                           uint32_t max_char_length= NAME_CHAR_LEN,
59
55
                           const char *param_for_err_msg= "");
60
56
 
65
61
                              bool no_error);
66
62
 
67
63
 
68
 
bool test_parse_for_slave(Session *session, char *inBuf,
 
64
bool mysql_test_parse_for_slave(Session *session, char *inBuf,
69
65
                                uint32_t length);
70
66
 
71
 
void reset_session_for_next_command(Session *session);
 
67
void mysql_reset_session_for_next_command(Session *session);
72
68
 
73
 
void create_select_for_variable(Session *session, const char *var_name);
 
69
void create_select_for_variable(const char *var_name);
74
70
 
75
71
void init_update_queries(void);
76
72
 
77
73
bool dispatch_command(enum enum_server_command command, Session *session,
78
74
                      char* packet, uint32_t packet_length);
79
75
 
80
 
bool check_simple_select(Session* session);
 
76
bool check_simple_select();
81
77
 
82
 
void init_select(LEX *lex);
83
 
bool new_select(LEX *lex, bool move_down);
 
78
void mysql_init_select(LEX *lex);
 
79
bool mysql_new_select(LEX *lex, bool move_down);
84
80
 
85
81
int prepare_new_schema_table(Session *session, LEX *lex,
86
82
                             const std::string& schema_table_name);