~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Stewart Smith
  • Date: 2009-10-08 12:39:27 UTC
  • mto: This revision was merged to the branch mainline in revision 1179.
  • Revision ID: stewart@flamingspork.com-20091008123927-qpf9hog04w4xc5aj
make directory_file_name() static to mysys/my_lib.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_SQL_BASE_H
21
21
#define DRIZZLED_SQL_BASE_H
22
22
 
 
23
#include <stdint.h>
23
24
#include <drizzled/table.h>
24
25
 
25
 
namespace drizzled
26
 
{
27
26
class TableShare;
28
 
class Name_resolution_context;
29
27
 
30
28
void table_cache_free(void);
31
29
bool table_cache_init(void);
 
30
void assign_new_table_id(TableShare *share);
32
31
uint32_t cached_open_tables(void);
33
32
uint32_t cached_table_definitions(void);
34
 
HASH *get_open_cache();
35
33
 
36
34
void kill_drizzle(void);
37
35
 
58
56
void add_join_on(TableList *b,Item *expr);
59
57
void add_join_natural(TableList *a,TableList *b,List<String> *using_fields,
60
58
                      Select_Lex *lex);
 
59
 
 
60
SQL_SELECT *make_select(Table *head, table_map const_tables,
 
61
                        table_map read_tables, COND *conds,
 
62
                        bool allow_null_cond,  int *error);
61
63
extern Item **not_found_item;
62
64
 
63
65
/**
127
129
                               TableList *TableList::*link,
128
130
                               const char *db_name,
129
131
                               const char *table_name);
130
 
TableList *unique_table(TableList *table, TableList *table_list,
131
 
                        bool check_alias= false);
132
 
void remove_db_from_cache(SchemaIdentifier &schema_identifier);
 
132
TableList *unique_table(Session *session, TableList *table, TableList *table_list,
 
133
                         bool check_alias);
 
134
void remove_db_from_cache(const char *db);
133
135
 
134
136
/* bits for last argument to remove_table_from_cache() */
135
137
#define RTFC_NO_FLAG                0x0000
139
141
bool remove_table_from_cache(Session *session, const char *db, const char *table,
140
142
                             uint32_t flags);
141
143
 
 
144
#define NORMAL_PART_NAME 0
 
145
#define TEMP_PART_NAME 1
 
146
#define RENAMED_PART_NAME 2
 
147
 
142
148
void mem_alloc_error(size_t size);
143
149
 
144
 
bool fill_record(Session* session, List<Item> &fields, List<Item> &values, bool ignore_errors= false);
145
 
bool fill_record(Session *session, Field **field, List<Item> &values, bool ignore_errors= false);
 
150
#define WFRM_WRITE_SHADOW 1
 
151
#define WFRM_INSTALL_SHADOW 2
 
152
#define WFRM_PACK_FRM 4
 
153
#define WFRM_KEEP_SHARE 8
 
154
 
 
155
bool fill_record(Session* session, List<Item> &fields, List<Item> &values, bool ignore_errors);
 
156
bool fill_record(Session *session, Field **field, List<Item> &values, bool ignore_errors);
 
157
bool list_open_tables(const char *db, const char *wild, bool(*func)(Table *table, open_table_list_st& open_list), Table *display);
 
158
 
146
159
inline TableList *find_table_in_global_list(TableList *table,
147
160
                                             const char *db_name,
148
161
                                             const char *table_name)
150
163
  return find_table_in_list(table, &TableList::next_global,
151
164
                            db_name, table_name);
152
165
}
153
 
 
154
 
} /* namespace drizzled */
155
 
 
156
166
#endif /* DRIZZLED_SQL_BASE_H */