~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2008-08-15 21:14:46 UTC
  • mto: This revision was merged to the branch mainline in revision 346.
  • Revision ID: brian@tangent.org-20080815211446-aqtozo1hoe8mb2az
Commiting next pass of Table class cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
/* Structs that defines the TABLE */
18
18
 
 
19
#ifndef DRIZZLED_TABLE_H
 
20
#define DRIZZLED_TABLE_H
 
21
 
 
22
#include <storage/myisam/myisam.h>
 
23
 
19
24
class Item;                             /* Needed by ORDER */
20
25
class Item_subselect;
21
26
class st_select_lex_unit;
349
354
  INDEX_HINT_FORCE
350
355
};
351
356
 
 
357
bool create_myisam_from_heap(THD *thd, TABLE *table,
 
358
                             MI_COLUMNDEF *start_recinfo,
 
359
                             MI_COLUMNDEF **recinfo, 
 
360
                             int error, bool ignore_last_dupp_key_error);
 
361
 
352
362
class Table {
353
363
public:
354
364
  TABLE_SHARE   *s;
372
382
  inline bool isReplaceWithNameLock() { return s->replace_with_name_lock; }
373
383
  inline bool isWaitingOnCondition() { return s->waiting_on_cond; }                 /* Protection against free */
374
384
 
 
385
  void updateCreateInfo(HA_CREATE_INFO *create_info);
 
386
  void setup_tmp_table_column_bitmaps(uchar *bitmaps);
 
387
 
 
388
  /* For TMP tables, should be pulled out as a class */
 
389
  bool create_myisam_tmp_table(KEY *keyinfo, 
 
390
                               MI_COLUMNDEF *start_recinfo,
 
391
                               MI_COLUMNDEF **recinfo, 
 
392
                               uint64_t options);
 
393
  void free_tmp_table(THD *thd);
 
394
  bool open_tmp_table();
 
395
 
375
396
  handler       *file;
376
397
  Table *next, *prev;
377
398
 
1208
1229
 
1209
1230
size_t max_row_length(TABLE *table, const uchar *data);
1210
1231
 
 
1232
#endif /* DRIZZLED_TABLE_H */