~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2008-10-20 04:28:21 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-20081020042821-rqqdrccuu8195k3y
Second pass of thd cleanup

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(Session *thd, char *path, enum legacy_db_type *dbt);
 
49
bool mysql_frm_type(Session *session, 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(Session *thd, Table *table,
 
340
bool create_myisam_from_heap(Session *session, 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(Session *thd);
 
377
  void free_tmp_table(Session *session);
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);
440
440
 
441
441
   Temporary tables:
442
442
 
443
 
   table->query_id is set to thd->query_id for the duration of a statement
 
443
   table->query_id is set to session->query_id for the duration of a statement
444
444
   and is reset to 0 once it is closed by the same statement. A non-zero
445
445
   table->query_id means that a statement is using the table even if it's
446
446
   not the current statement (table is in use by some outer statement).
447
447
 
448
448
   Non-temporary tables:
449
449
 
450
 
   Under pre-locked or LOCK TABLES mode: query_id is set to thd->query_id
 
450
   Under pre-locked or LOCK TABLES mode: query_id is set to session->query_id
451
451
   for the duration of a statement and is reset to 0 once it is closed by
452
452
   the same statement. A non-zero query_id is used to control which tables
453
453
   in the list of pre-opened and locked tables are actually being used.
701
701
  const char* table_name;
702
702
  ST_FIELD_INFO *fields_info;
703
703
  /* Create information_schema table */
704
 
  Table *(*create_table)  (Session *thd, TableList *table_list);
 
704
  Table *(*create_table)  (Session *session, TableList *table_list);
705
705
  /* Fill table with data */
706
 
  int (*fill_table) (Session *thd, TableList *tables, COND *cond);
 
706
  int (*fill_table) (Session *session, TableList *tables, COND *cond);
707
707
  /* Handle fileds for old SHOW */
708
 
  int (*old_format) (Session *thd, struct ST_SCHEMA_TABLE *schema_table);
709
 
  int (*process_table) (Session *thd, TableList *tables, Table *table,
 
708
  int (*old_format) (Session *session, struct ST_SCHEMA_TABLE *schema_table);
 
709
  int (*process_table) (Session *session, 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;