diff --git a/sql/sql_update.cc b/sql/sql_update.cc index 37a242a55f3..17d81feb169 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -688,6 +688,7 @@ int mysql_update(THD *thd, if (reinit_io_cache(&tempfile,READ_CACHE,0L,0,0)) error=1; /* purecov: inspected */ select->file=tempfile; // Read row ptrs from this file + setup_io_cache(&select->file); if (error >= 0) goto exit_without_my_ok; }