~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Siddharth Prakash Singh
  • Date: 2010-03-26 17:24:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1425.
  • Revision ID: spsneo@spsneo-laptop-20100326172457-vni09y22ktvvefmn
some more sprintf --> snprintf

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define DRIZZLED_SQL_BASE_H
22
22
 
23
23
#include <drizzled/table.h>
24
 
#include <drizzled/table/concurrent.h>
25
24
 
26
25
namespace drizzled
27
26
{
32
31
bool table_cache_init(void);
33
32
uint32_t cached_open_tables(void);
34
33
uint32_t cached_table_definitions(void);
35
 
 
36
 
table::Cache &get_open_cache();
 
34
HASH *get_open_cache();
37
35
 
38
36
void kill_drizzle(void);
39
37
 
91
89
  RESOLVED_WITH_NO_ALIAS,
92
90
  RESOLVED_AGAINST_ALIAS
93
91
};
94
 
Item ** find_item_in_list(Session *session,
95
 
                          Item *item, List<Item> &items, uint32_t *counter,
 
92
Item ** find_item_in_list(Item *item, List<Item> &items, uint32_t *counter,
96
93
                          find_item_error_report_type report_error,
97
94
                          enum_resolution_type *resolution);
98
95
bool insert_fields(Session *session, Name_resolution_context *context,
132
129
                               const char *table_name);
133
130
TableList *unique_table(TableList *table, TableList *table_list,
134
131
                        bool check_alias= false);
 
132
void remove_db_from_cache(const std::string schema_name);
135
133
 
136
 
/* bits for last argument to table::Cache::singleton().removeTable() */
 
134
/* bits for last argument to remove_table_from_cache() */
137
135
#define RTFC_NO_FLAG                0x0000
138
136
#define RTFC_OWNED_BY_Session_FLAG      0x0001
139
137
#define RTFC_WAIT_OTHER_THREAD_FLAG 0x0002
140
138
#define RTFC_CHECK_KILLED_FLAG      0x0004
 
139
bool remove_table_from_cache(Session *session, const char *db, const char *table,
 
140
                             uint32_t flags);
141
141
 
142
142
void mem_alloc_error(size_t size);
143
143