diff options
Diffstat (limited to 'sql/records.cc')
-rw-r--r-- | sql/records.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/records.cc b/sql/records.cc index 6bb7c7cffa1..5ce7d8660e9 100644 --- a/sql/records.cc +++ b/sql/records.cc @@ -299,7 +299,8 @@ void end_read_record(READ_RECORD *info) if (info->table) { filesort_free_buffers(info->table,0); - (void) info->file->extra(HA_EXTRA_NO_CACHE); + if (info->table->created) + (void) info->file->extra(HA_EXTRA_NO_CACHE); if (info->read_record != rr_quick) // otherwise quick_range does it (void) info->file->ha_index_or_rnd_end(); info->table=0; |