~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2011-01-18 07:21:16 UTC
  • mfrom: (2079.3.3 session-fix)
  • Revision ID: brian@tangent.org-20110118072116-nuflltzguzhq9rgg
Merge in update so that test-run.pl runs all of test/suite and fix for
create table like and FK.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
/* Structs that defines the Table */
22
22
 
23
 
 
24
 
 
25
23
#ifndef DRIZZLED_TABLE_H
26
24
#define DRIZZLED_TABLE_H
27
25
 
39
37
#include "drizzled/atomics.h"
40
38
#include "drizzled/query_id.h"
41
39
 
42
 
#include "drizzled/visibility.h"
43
 
 
44
40
namespace drizzled
45
41
{
46
42
 
65
61
 * Class representing a set of records, either in a temporary, 
66
62
 * normal, or derived table.
67
63
 */
68
 
class DRIZZLED_API Table 
 
64
class Table 
69
65
{
70
66
  Field **field; /**< Pointer to fields collection */
71
67
public:
91
87
  }
92
88
 
93
89
  Cursor *cursor; /**< Pointer to the storage engine's Cursor managing this table */
94
 
 
95
90
private:
96
91
  Table *next;
97
 
 
98
92
public:
99
93
  Table *getNext() const
100
94
  {
316
310
    The set is implemented as a bitmap.
317
311
  */
318
312
  key_map keys_in_use_for_query;
319
 
 
320
313
  /* Map of keys that can be used to calculate GROUP BY without sorting */
321
314
  key_map keys_in_use_for_group_by;
322
 
 
323
315
  /* Map of keys that can be used to calculate ORDER BY without sorting */
324
316
  key_map keys_in_use_for_order_by;
325
317
 
418
410
 
419
411
    return NULL;
420
412
  }
421
 
  inline uint8_t getBlobPtrSize() const { return getShare()->sizeBlobPtr(); }
422
 
  inline uint32_t getNullBytes() const { return getShare()->null_bytes; }
423
 
  inline uint32_t getNullFields() const { return getShare()->null_fields; }
 
413
  inline uint8_t getBlobPtrSize() { return getShare()->blob_ptr_size; }
 
414
  inline uint32_t getNullBytes() { return getShare()->null_bytes; }
 
415
  inline uint32_t getNullFields() { return getShare()->null_fields; }
424
416
  inline unsigned char *getDefaultValues() { return  getMutableShare()->getDefaultValues(); }
425
417
  inline const char *getSchemaName()  const { return getShare()->getSchemaName(); }
426
418
  inline const char *getTableName()  const { return getShare()->getTableName(); }
427
419
 
428
 
  inline bool isDatabaseLowByteFirst() const { return getShare()->db_low_byte_first; } /* Portable row format */
 
420
  inline bool isDatabaseLowByteFirst() { return getShare()->db_low_byte_first; } /* Portable row format */
429
421
  inline bool isNameLock() const { return open_placeholder; }
430
422
 
431
423
  uint32_t index_flags(uint32_t idx) const
851
843
ulong get_form_pos(int file, unsigned char *head, TYPELIB *save_names);
852
844
void append_unescaped(String *res, const char *pos, uint32_t length);
853
845
 
854
 
DRIZZLED_API int rename_file_ext(const char * from,const char * to,const char * ext);
 
846
int rename_file_ext(const char * from,const char * to,const char * ext);
855
847
bool check_column_name(const char *name);
856
848
bool check_db_name(Session *session, identifier::Schema &schema);
857
849
bool check_table_name(const char *name, uint32_t length);