summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2002-08-21 20:55:34 +0000
committerunknown <serg@serg.mysql.com>2002-08-21 20:55:34 +0000
commit3f93edfa141c28e479781a5c0fa6c59150dc6369 (patch)
tree077077879672f832b6b343af53b8f4d0d8375553 /sql/sql_handler.cc
parentbccec2296baf616eae4ed7ac854dc5b726b2cd4e (diff)
downloadmariadb-git-3f93edfa141c28e479781a5c0fa6c59150dc6369.tar.gz
InnoDB support for HANDLER
mysql-test/r/innodb.result: remove handler test from innodb.test mysql-test/t/innodb.test: remove handler test from innodb.test sql/ha_innodb.cc: HANDLER support sql/ha_innodb.h: HANDLER support sql/handler.h: HANDLER support for InnoDB sql/sql_handler.cc: HANDLER support for InnoDB
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r--sql/sql_handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc
index 27d5d431750..046ab87d18b 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -117,6 +117,7 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
keyname,tables->name);
return -1;
}
+ table->file->index_init(keyno);
}
List<Item> list;
@@ -127,7 +128,7 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
insert_fields(thd,tables,tables->db,tables->name,&it);
- table->file->index_init(keyno);
+ table->file->init_table_handle_for_HANDLER(); // Only InnoDB requires it
select_limit+=offset_limit;
send_fields(thd,list,1);