~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Brian Aker
  • Date: 2009-06-08 22:21:27 UTC
  • mto: This revision was merged to the branch mainline in revision 1058.
  • Revision ID: brian@gaz-20090608222127-gazmq4pzrq49dvhn
This is a large number of refactors against the Session class for its
ownership of of open_tables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
void unlink_open_table(Session *session, Table *find);
63
63
void drop_open_table(Session *session, Table *table, const char *db_name,
64
64
                     const char *table_name);
65
 
void update_non_unique_table_error(TableList *update,
66
 
                                   const char *operation,
67
 
                                   TableList *duplicate);
68
65
 
69
66
SQL_SELECT *make_select(Table *head, table_map const_tables,
70
67
                        table_map read_tables, COND *conds,
136
133
int init_ftfuncs(Session *session, Select_Lex* select, bool no_order);
137
134
void wait_for_condition(Session *session, pthread_mutex_t *mutex,
138
135
                        pthread_cond_t *cond);
139
 
int open_tables(Session *session, TableList **tables, uint32_t *counter, uint32_t flags);
 
136
int open_tables_from_list(Session *session, TableList **tables, uint32_t *counter, uint32_t flags);
140
137
/* open_and_lock_tables with optional derived handling */
141
138
int open_and_lock_tables_derived(Session *session, TableList *tables, bool derived);
142
 
/* open_and_lock_tables with derived handling */
143
 
inline int open_and_lock_tables(Session *session, TableList *tables)
144
 
{
145
 
  return open_and_lock_tables_derived(session, tables, true);
146
 
}
147
139
bool open_normal_and_derived_tables(Session *session, TableList *tables, uint32_t flags);
148
140
int lock_tables(Session *session, TableList *tables, uint32_t counter, bool *need_reopen);
149
141
int decide_logging_format(Session *session);