summaryrefslogtreecommitdiff
path: root/sql/ha_blackhole.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/ha_blackhole.cc')
-rw-r--r--sql/ha_blackhole.cc15
1 files changed, 7 insertions, 8 deletions
diff --git a/sql/ha_blackhole.cc b/sql/ha_blackhole.cc
index 3503f5bec1b..e2b0fc29d86 100644
--- a/sql/ha_blackhole.cc
+++ b/sql/ha_blackhole.cc
@@ -24,7 +24,7 @@
/* Static declarations for handlerton */
-static handler *blackhole_create_handler(TABLE *table);
+static handler *blackhole_create_handler(TABLE_SHARE *table);
/* Blackhole storage engine handlerton */
@@ -63,7 +63,7 @@ handlerton blackhole_hton= {
};
-static handler *blackhole_create_handler(TABLE *table)
+static handler *blackhole_create_handler(TABLE_SHARE *table)
{
return new ha_blackhole(table);
}
@@ -73,7 +73,7 @@ static handler *blackhole_create_handler(TABLE *table)
** BLACKHOLE tables
*****************************************************************************/
-ha_blackhole::ha_blackhole(TABLE *table_arg)
+ha_blackhole::ha_blackhole(TABLE_SHARE *table_arg)
:handler(&blackhole_hton, table_arg)
{}
@@ -112,13 +112,12 @@ int ha_blackhole::create(const char *name, TABLE *table_arg,
const char *ha_blackhole::index_type(uint key_number)
{
DBUG_ENTER("ha_blackhole::index_type");
- DBUG_RETURN((table->key_info[key_number].flags & HA_FULLTEXT) ?
+ DBUG_RETURN((table_share->key_info[key_number].flags & HA_FULLTEXT) ?
"FULLTEXT" :
- (table->key_info[key_number].flags & HA_SPATIAL) ?
+ (table_share->key_info[key_number].flags & HA_SPATIAL) ?
"SPATIAL" :
- (table->key_info[key_number].algorithm == HA_KEY_ALG_RTREE) ?
- "RTREE" :
- "BTREE");
+ (table_share->key_info[key_number].algorithm ==
+ HA_KEY_ALG_RTREE) ? "RTREE" : "BTREE");
}
int ha_blackhole::write_row(byte * buf)