~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

Refactor Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
1207
1207
  */
1208
1208
  memory::Root main_mem_root;
1209
1209
 
1210
 
  /**
1211
 
   * Marks all tables in the list which were used by current substatement
1212
 
   * as free for reuse.
1213
 
   *
1214
 
   * @param Head of the list of tables
1215
 
   *
1216
 
   * @note
1217
 
   *
1218
 
   * The reason we reset query_id is that it's not enough to just test
1219
 
   * if table->query_id != session->query_id to know if a table is in use.
1220
 
   *
1221
 
   * For example
1222
 
   *
1223
 
   *  SELECT f1_that_uses_t1() FROM t1;
1224
 
   *
1225
 
   * In f1_that_uses_t1() we will see one instance of t1 where query_id is
1226
 
   * set to query_id of original query.
1227
 
   */
1228
 
  void mark_used_tables_as_free_for_reuse(Table *table);
1229
 
 
1230
1210
public:
1231
1211
  void my_ok(ha_rows affected_rows= 0, ha_rows found_rows_arg= 0, uint64_t passed_id= 0, const char *message= NULL);
1232
1212
  void my_eof();