summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 5a2f672368b..af851733af9 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -487,10 +487,9 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
{
for (uint i_h = join.const_tables; i_h < join.tables; i_h++)
{
- JOIN_TAB* tab_h = join.join_tab + i_h;
- TABLE* table_h = tab_h->table;
+ TABLE* table_h = join.join_tab[i_h].table;
if (table_h->db_type == DB_TYPE_INNOBASE)
- table_h->file->extra(HA_EXTRA_RESTORE_POS);
+ table_h->file->extra(HA_EXTRA_DONT_USE_CURSOR_TO_UPDATE);
}
}
#endif