summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMagne Mahre <magne.mahre@sun.com>2009-11-25 19:29:52 +0100
committerMagne Mahre <magne.mahre@sun.com>2009-11-25 19:29:52 +0100
commitdd6fd68f93aff0e3f9bd11c926685265638c699f (patch)
treecbbe5a4f8edf1ba7e17710f2b90f65ab9f0c1693 /storage
parentbe0add42f53b23d8a5e279cb3041a3fc93e375a0 (diff)
downloadmariadb-git-dd6fd68f93aff0e3f9bd11c926685265638c699f.tar.gz
Bug#40677 Archive tables joined on primary return no result
Select queries on archive tables when joined on their primary keys returns no results(empty set) Archive storage doesn't inform the handler about the fetched record status when it is found. Fixed the archive storage engine to update the record status when it fetches successfully
Diffstat (limited to 'storage')
-rw-r--r--storage/archive/ha_archive.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/archive/ha_archive.cc b/storage/archive/ha_archive.cc
index a341843662f..f69b19369b2 100644
--- a/storage/archive/ha_archive.cc
+++ b/storage/archive/ha_archive.cc
@@ -953,7 +953,11 @@ int ha_archive::index_read_idx(uchar *buf, uint index, const uchar *key,
}
if (found)
+ {
+ /* notify handler that a record has been found */
+ table->status= 0;
DBUG_RETURN(0);
+ }
error:
DBUG_RETURN(rc ? rc : HA_ERR_END_OF_FILE);