diff options
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r-- | sql/sql_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc index 538ca3fd1f0..8d06d3f0017 100644 --- a/sql/sql_handler.cc +++ b/sql/sql_handler.cc @@ -166,7 +166,7 @@ int mysql_ha_close_list(THD *thd, TABLE_LIST *tables, bool flushed) if (tables) { - for (tl_item= tables ; tl_item; tl_item= tl_item->next) + for (tl_item= tables ; tl_item; tl_item= tl_item->next_local) { mysql_ha_close(thd, tl_item, /*dont_send_ok*/ 1, /*dont_lock*/ 1, /*no_alias*/ 1); @@ -249,7 +249,7 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables, it++; // Skip first NULL field - insert_fields(thd,tables,tables->db,tables->alias,&it); + insert_fields(thd, tables, tables->db, tables->alias, &it, 0); select_limit+=offset_limit; protocol->send_fields(&list,1); |