~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Stewart Smith
  • Date: 2009-12-02 06:01:21 UTC
  • mto: (1237.1.2 push)
  • mto: This revision was merged to the branch mainline in revision 1238.
  • Revision ID: stewart@flamingspork.com-20091202060121-68gyfqifqcjcmi2v
my_end() no longer requires an argument (we removed them all)

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
/**
129
131
                               const char *table_name);
130
132
TableList *unique_table(TableList *table, TableList *table_list,
131
133
                        bool check_alias= false);
132
 
void remove_db_from_cache(SchemaIdentifier &schema_identifier);
 
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
141
143
 
142
144
void mem_alloc_error(size_t size);
143
145
 
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);
 
146
bool fill_record(Session* session, List<Item> &fields, List<Item> &values, bool ignore_errors);
 
147
bool fill_record(Session *session, Field **field, List<Item> &values, bool ignore_errors);
 
148
bool list_open_tables(const char *db, 
 
149
                      const char *wild, 
 
150
                      bool(*func)(Table *table, 
 
151
                                  open_table_list_st& open_list,
 
152
                                  drizzled::plugin::InfoSchemaTable *schema_table), 
 
153
                      Table *display,
 
154
                      drizzled::plugin::InfoSchemaTable *schema_table);
 
155
 
146
156
inline TableList *find_table_in_global_list(TableList *table,
147
157
                                             const char *db_name,
148
158
                                             const char *table_name)
150
160
  return find_table_in_list(table, &TableList::next_global,
151
161
                            db_name, table_name);
152
162
}
153
 
 
154
 
} /* namespace drizzled */
155
 
 
156
163
#endif /* DRIZZLED_SQL_BASE_H */