diff options
author | antony@ltantony.rdg.cyberkinetica.homeunix.net <> | 2003-12-02 20:23:13 +0000 |
---|---|---|
committer | antony@ltantony.rdg.cyberkinetica.homeunix.net <> | 2003-12-02 20:23:13 +0000 |
commit | afc619f0a2e4351bd39acac53ec2fbc6be266a28 (patch) | |
tree | a1d4f9a06ea60ffecc485017f2b404db112ab281 /sql/handler.h | |
parent | 0a5af4448023fabe2c7294a1ca03e0a6c25e925e (diff) | |
download | mariadb-git-afc619f0a2e4351bd39acac53ec2fbc6be266a28.tar.gz |
WorkLog#1280 - Remove fixed table handler from lex/yacc
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h index 9089db60d77..2183b8fa992 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -131,6 +131,13 @@ enum db_type { DB_TYPE_UNKNOWN=0,DB_TYPE_DIAB_ISAM=1, DB_TYPE_BERKELEY_DB, DB_TYPE_INNODB, DB_TYPE_GEMINI, DB_TYPE_DEFAULT }; +struct show_table_type_st { + const char *type; + SHOW_COMP_OPTION *value; + const char *comment; + enum db_type db_type; +}; + enum row_type { ROW_TYPE_NOT_USED=-1, ROW_TYPE_DEFAULT, ROW_TYPE_FIXED, ROW_TYPE_DYNAMIC, ROW_TYPE_COMPRESSED}; @@ -372,8 +379,9 @@ public: /* Some extern variables used with handlers */ +extern struct show_table_type_st sys_table_types[]; extern const char *ha_row_type[]; -extern TYPELIB ha_table_typelib, tx_isolation_typelib; +extern TYPELIB tx_isolation_typelib; /* Wrapper functions */ #define ha_commit_stmt(thd) (ha_commit_trans((thd), &((thd)->transaction.stmt))) @@ -383,6 +391,8 @@ extern TYPELIB ha_table_typelib, tx_isolation_typelib; #define ha_supports_generate(T) (T != DB_TYPE_INNODB) +enum db_type ha_resolve_by_name(const char *name, uint namelen); +const char *ha_get_table_type(enum db_type db_type); handler *get_new_handler(TABLE *table, enum db_type db_type); my_off_t ha_get_ptr(byte *ptr, uint pack_length); void ha_store_ptr(byte *buff, uint pack_length, my_off_t pos); |