~drizzle-trunk/drizzle/development

390.1.2 by Monty Taylor
Fixed copyright headers in drizzled/
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
4
 *  Copyright (C) 2008 Sun Microsystems
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; version 2 of the License.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License
16
 *  along with this program; if not, write to the Free Software
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 */
243.1.5 by Jay Pipes
* Pulled the remainder of the log and parse stuff out into
19
20
#ifndef DRIZZLE_SERVER_SQL_PARSE_H
21
#define DRIZZLE_SERVER_SQL_PARSE_H
22
520.1.22 by Brian Aker
Second pass of thd cleanup
23
bool begin_trans(Session *session);
24
bool end_active_trans(Session *session);
25
int end_trans(Session *session, enum enum_mysql_completiontype completion);
243.1.5 by Jay Pipes
* Pulled the remainder of the log and parse stuff out into
26
520.1.22 by Brian Aker
Second pass of thd cleanup
27
bool execute_sqlcom_select(Session *session, TableList *all_tables);
28
bool multi_update_precheck(Session *session, TableList *tables);
29
bool multi_delete_precheck(Session *session, TableList *tables);
30
int mysql_multi_update_prepare(Session *session);
31
int mysql_multi_delete_prepare(Session *session);
32
bool mysql_insert_select_prepare(Session *session);
33
bool update_precheck(Session *session, TableList *tables);
34
bool delete_precheck(Session *session, TableList *tables);
35
bool insert_precheck(Session *session, TableList *tables);
36
bool create_table_precheck(Session *session, TableList *tables,
327.2.4 by Brian Aker
Refactoring table.h
37
                           TableList *create_table);
520.1.22 by Brian Aker
Second pass of thd cleanup
38
bool parse_sql(Session *session, class Lex_input_stream *lip);
243.1.5 by Jay Pipes
* Pulled the remainder of the log and parse stuff out into
39
520.1.22 by Brian Aker
Second pass of thd cleanup
40
Item *negate_expression(Session *session, Item *expr);
243.1.5 by Jay Pipes
* Pulled the remainder of the log and parse stuff out into
41
42
bool test_if_data_home_dir(const char *dir);
43
482 by Brian Aker
Remove uint.
44
bool check_identifier_name(LEX_STRING *str, uint32_t max_char_length,
45
                           uint32_t err_code, const char *param_for_err_msg);
46
inline bool check_identifier_name(LEX_STRING *str, uint32_t err_code)
243.1.5 by Jay Pipes
* Pulled the remainder of the log and parse stuff out into
47
{
48
  return check_identifier_name(str, NAME_CHAR_LEN, err_code, "");
49
}
50
inline bool check_identifier_name(LEX_STRING *str)
51
{
52
  return check_identifier_name(str, NAME_CHAR_LEN, 0, "");
53
}
54
55
bool check_string_byte_length(LEX_STRING *str, const char *err_msg,
482 by Brian Aker
Remove uint.
56
                              uint32_t max_byte_length);
243.1.5 by Jay Pipes
* Pulled the remainder of the log and parse stuff out into
57
bool check_string_char_length(LEX_STRING *str, const char *err_msg,
482 by Brian Aker
Remove uint.
58
                              uint32_t max_char_length, const CHARSET_INFO * const cs,
243.1.5 by Jay Pipes
* Pulled the remainder of the log and parse stuff out into
59
                              bool no_error);
60
61
#endif /* DRIZZLE_SERVER_SQL_PARSE_H */