29
29
#include <boost/dynamic_bitset.hpp>
31
#include <drizzled/order.h>
32
#include <drizzled/filesort_info.h>
33
#include <drizzled/natural_join_column.h>
34
#include <drizzled/field_iterator.h>
35
#include <drizzled/cursor.h>
36
#include <drizzled/lex_string.h>
37
#include <drizzled/table/instance.h>
38
#include <drizzled/atomics.h>
39
#include <drizzled/query_id.h>
31
#include "drizzled/order.h"
32
#include "drizzled/filesort_info.h"
33
#include "drizzled/natural_join_column.h"
34
#include "drizzled/field_iterator.h"
35
#include "drizzled/cursor.h"
36
#include "drizzled/lex_string.h"
37
#include "drizzled/table_list.h"
38
#include "drizzled/table/instance.h"
39
#include "drizzled/atomics.h"
40
#include "drizzled/query_id.h"
41
#include <drizzled/visibility.h>
42
#include "drizzled/visibility.h"
49
48
class Item_subselect;
49
class Select_Lex_Unit;
50
52
class SecurityContext;
52
class Select_Lex_Unit;
54
namespace field { class Epoch; }
55
namespace plugin { class StorageEngine; }
59
extern uint64_t refresh_version;
57
61
typedef enum enum_table_category TABLE_CATEGORY;
58
62
typedef struct st_columndef MI_COLUMNDEF;
424
428
inline bool isDatabaseLowByteFirst() const { return getShare()->db_low_byte_first; } /* Portable row format */
425
429
inline bool isNameLock() const { return open_placeholder; }
427
uint32_t index_flags(uint32_t idx) const;
431
uint32_t index_flags(uint32_t idx) const
433
return getShare()->storage_engine->index_flags(getShare()->getKeyInfo(idx).algorithm);
429
436
inline plugin::StorageEngine *getEngine() const /* table_type for handler */
431
return getShare()->getEngine();
438
return getShare()->storage_engine;
434
441
Cursor &getCursor() const /* table_type for handler */
555
562
return db_stat || open_placeholder;
559
565
Is this instance of the table should be reopen or represents a name-lock?
561
bool needs_reopen_or_name_lock() const;
567
inline bool needs_reopen_or_name_lock()
569
return getShare()->getVersion() != refresh_version;
564
573
clean/setup table fields and map.
579
588
void filesort_free_buffers(bool full= false);
580
589
void intern_close_table();
582
void print_error(int error, myf errflag) const;
591
void print_error(int error, myf errflag)
593
getShare()->storage_engine->print_error(error, errflag, *this);
586
598
key if error because of duplicated keys
588
uint32_t get_dup_key(int error) const
600
uint32_t get_dup_key(int error)
590
602
cursor->errkey = (uint32_t) -1;
591
603
if (error == HA_ERR_FOUND_DUPP_KEY || error == HA_ERR_FOREIGN_DUPLICATE_KEY ||
829
841
namespace optimizer { class SqlSelect; }
831
843
void change_double_for_sort(double nr,unsigned char *to);
844
double my_double_round(double value, int64_t dec, bool dec_unsigned,
832
846
int get_quick_record(optimizer::SqlSelect *select);
834
848
void find_date(char *pos,uint32_t *vek,uint32_t flag);
840
854
DRIZZLED_API int rename_file_ext(const char * from,const char * to,const char * ext);
841
855
bool check_column_name(const char *name);
856
bool check_db_name(Session *session, identifier::Schema &schema);
842
857
bool check_table_name(const char *name, uint32_t length);
844
859
} /* namespace drizzled */
846
#include <drizzled/table/singular.h>
847
#include <drizzled/table/concurrent.h>
861
#include "drizzled/table/singular.h"
862
#include "drizzled/table/concurrent.h"
849
864
#endif /* DRIZZLED_TABLE_H */