~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-29 12:04:36 UTC
  • mto: (2257.1.1 build) (2276.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: olafvdspek@gmail.com-20110329120436-vozkuer8vqgh027p
Always call assert()

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_BASE_H
21
 
#define DRIZZLED_SQL_BASE_H
 
20
 
 
21
 
 
22
#pragma once
22
23
 
23
24
#include <drizzled/table.h>
 
25
#include <drizzled/table_list.h>
24
26
#include <drizzled/table/concurrent.h>
25
27
 
26
 
namespace drizzled
27
 
{
28
 
class TableShare;
29
 
class Name_resolution_context;
 
28
#include <drizzled/visibility.h>
 
29
 
 
30
namespace drizzled {
30
31
 
31
32
void table_cache_free(void);
32
33
bool table_cache_init(void);
35
36
 
36
37
table::Cache &get_open_cache();
37
38
 
38
 
void kill_drizzle(void);
 
39
DRIZZLED_API void kill_drizzle(void);
39
40
 
40
41
/* sql_base.cc */
41
42
void set_item_name(Item *item,char *pos,uint32_t length);
46
47
                       Item *default_value, Item *on_update_value,
47
48
                       LEX_STRING *comment,
48
49
                       char *change, List<String> *interval_list,
49
 
                       const CHARSET_INFO * const cs);
 
50
                       const charset_info_st * const cs);
50
51
CreateField * new_create_field(Session *session, char *field_name, enum_field_types type,
51
52
                               char *length, char *decimals,
52
53
                               uint32_t type_modifier,
53
54
                               Item *default_value, Item *on_update_value,
54
55
                               LEX_STRING *comment, char *change,
55
 
                               List<String> *interval_list, CHARSET_INFO *cs);
56
 
void store_position_for_column(const char *name);
57
 
bool push_new_name_resolution_context(Session *session,
58
 
                                      TableList *left_op,
59
 
                                      TableList *right_op);
 
56
                               List<String> *interval_list, charset_info_st *cs);
 
57
void push_new_name_resolution_context(Session&, TableList& left_op, TableList& right_op);
60
58
void add_join_on(TableList *b,Item *expr);
61
59
void add_join_natural(TableList *a,TableList *b,List<String> *using_fields,
62
60
                      Select_Lex *lex);
97
95
                          enum_resolution_type *resolution);
98
96
bool insert_fields(Session *session, Name_resolution_context *context,
99
97
                   const char *db_name, const char *table_name,
100
 
                   List_iterator<Item> *it, bool any_privileges);
 
98
                   List<Item>::iterator *it, bool any_privileges);
101
99
bool setup_tables(Session *session, Name_resolution_context *context,
102
100
                  List<TableList> *from_clause, TableList *tables,
103
101
                  TableList **leaves, bool select_insert);
151
149
                            db_name, table_name);
152
150
}
153
151
 
 
152
bool drizzle_rm_tmp_tables();
 
153
 
154
154
} /* namespace drizzled */
155
155
 
156
 
#endif /* DRIZZLED_SQL_BASE_H */