From 18d9f8d429c539b9ba7543615e54de03e8a71c96 Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Tue, 29 Nov 2011 02:11:13 +0400 Subject: bug 857066 Wrong result with ST_DISJOINT when using an index the ST_DISJOINT can't be properly optimized with the RTree key at the moment. per-file comments: storage/maria/ma_rt_index.c bug 857066 Wrong result with ST_DISJOINT when using an index disabled optimization for the DISJOINT case. --- storage/maria/ma_rt_index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage/maria/ma_rt_index.c') diff --git a/storage/maria/ma_rt_index.c b/storage/maria/ma_rt_index.c index bd1b9038ccf..f4c5b26f40a 100644 --- a/storage/maria/ma_rt_index.c +++ b/storage/maria/ma_rt_index.c @@ -1258,7 +1258,7 @@ ha_rows maria_rtree_estimate(MARIA_HA *info, MARIA_KEY *key, uint32 flag) MARIA_PAGE page; if (flag & MBR_DISJOINT) - return info->state->records; + return HA_POS_ERROR; if ((root= share->state.key_root[key->keyinfo->key_nr]) == HA_OFFSET_ERROR) return HA_POS_ERROR; -- cgit v1.2.1