~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2008-10-20 03:40:03 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020034003-t2dcnl0ayr2ymm8k
THD -> Session rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
  INTERNAL_TMP_TABLE, SYSTEM_TMP_TABLE, TMP_TABLE_FRM_FILE_ONLY
47
47
};
48
48
 
49
 
bool mysql_frm_type(THD *thd, char *path, enum legacy_db_type *dbt);
 
49
bool mysql_frm_type(Session *thd, char *path, enum legacy_db_type *dbt);
50
50
 
51
51
 
52
52
enum release_type { RELEASE_NORMAL, RELEASE_WAIT_FOR_DROP };
337
337
  LEX_STRING cset;
338
338
} TABLE_FIELD_W_TYPE;
339
339
 
340
 
bool create_myisam_from_heap(THD *thd, Table *table,
 
340
bool create_myisam_from_heap(Session *thd, Table *table,
341
341
                             MI_COLUMNDEF *start_recinfo,
342
342
                             MI_COLUMNDEF **recinfo, 
343
343
                             int error, bool ignore_last_dupp_key_error);
374
374
                               MI_COLUMNDEF *start_recinfo,
375
375
                               MI_COLUMNDEF **recinfo, 
376
376
                               uint64_t options);
377
 
  void free_tmp_table(THD *thd);
 
377
  void free_tmp_table(Session *thd);
378
378
  bool open_tmp_table();
379
379
  size_t max_row_length(const unsigned char *data);
380
380
  uint32_t find_shortest_key(const key_map *usable_keys);
391
391
  handler       *file;
392
392
  Table *next, *prev;
393
393
 
394
 
  THD   *in_use;                        /* Which thread uses this */
 
394
  Session       *in_use;                        /* Which thread uses this */
395
395
  Field **field;                        /* Pointer to fields */
396
396
 
397
397
  unsigned char *record[2];                     /* Pointer to records */
398
398
  unsigned char *write_row_record;              /* Used as optimisation in
399
 
                                           THD::write_row */
 
399
                                           Session::write_row */
400
400
  unsigned char *insert_values;                  /* used by INSERT ... UPDATE */
401
401
  /* 
402
402
    Map of keys that can be used to retrieve all data from this table 
701
701
  const char* table_name;
702
702
  ST_FIELD_INFO *fields_info;
703
703
  /* Create information_schema table */
704
 
  Table *(*create_table)  (THD *thd, TableList *table_list);
 
704
  Table *(*create_table)  (Session *thd, TableList *table_list);
705
705
  /* Fill table with data */
706
 
  int (*fill_table) (THD *thd, TableList *tables, COND *cond);
 
706
  int (*fill_table) (Session *thd, TableList *tables, COND *cond);
707
707
  /* Handle fileds for old SHOW */
708
 
  int (*old_format) (THD *thd, struct ST_SCHEMA_TABLE *schema_table);
709
 
  int (*process_table) (THD *thd, TableList *tables, Table *table,
 
708
  int (*old_format) (Session *thd, struct ST_SCHEMA_TABLE *schema_table);
 
709
  int (*process_table) (Session *thd, TableList *tables, Table *table,
710
710
                        bool res, LEX_STRING *db_name, LEX_STRING *table_name);
711
711
  int idx_field1, idx_field2; 
712
712
  bool hidden;