mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
ha_myisammrg was missing index_type() method bug#6756
sql/ha_myisammrg.cc: ha_myisammrg was missing index_type() method sql/ha_myisammrg.h: ha_myisammrg was missing index_type() method
This commit is contained in:
parent
87ec5e46cd
commit
02b0e43089
2 changed files with 12 additions and 0 deletions
|
@ -35,6 +35,17 @@
|
|||
const char **ha_myisammrg::bas_ext() const
|
||||
{ static const char *ext[]= { ".MRG", NullS }; return ext; }
|
||||
|
||||
const char *ha_myisammrg::index_type(uint key_number)
|
||||
{
|
||||
return ((table->key_info[key_number].flags & HA_FULLTEXT) ?
|
||||
"FULLTEXT" :
|
||||
(table->key_info[key_number].flags & HA_SPATIAL) ?
|
||||
"SPATIAL" :
|
||||
(table->key_info[key_number].algorithm == HA_KEY_ALG_RTREE) ?
|
||||
"RTREE" :
|
||||
"BTREE");
|
||||
}
|
||||
|
||||
|
||||
int ha_myisammrg::open(const char *name, int mode, uint test_if_locked)
|
||||
{
|
||||
|
|
|
@ -32,6 +32,7 @@ class ha_myisammrg: public handler
|
|||
~ha_myisammrg() {}
|
||||
const char *table_type() const { return "MRG_MyISAM"; }
|
||||
const char **bas_ext() const;
|
||||
const char *index_type(uint key_number);
|
||||
ulong table_flags() const
|
||||
{
|
||||
return (HA_REC_NOT_IN_SEQ | HA_AUTO_PART_KEY | HA_READ_RND_SAME |
|
||||
|
|
Loading…
Reference in a new issue