mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
bug 857066 Wrong result with ST_DISJOINT when using an index.
DISJOINT can't be properly optimized with the RTree keys in MyISAM also.
per-file comments:
storage/myisam/rt_index.c
bug 857066 Wrong result with ST_DISJOINT when using an index.
don't optimize DISJOINT with the RTree keys.
This commit is contained in:
parent
18d9f8d429
commit
cdde6187d1
1 changed files with 1 additions and 1 deletions
|
|
@ -1028,7 +1028,7 @@ ha_rows rtree_estimate(MI_INFO *info, uint keynr, uchar *key,
|
|||
ha_rows res = 0;
|
||||
|
||||
if (flag & MBR_DISJOINT)
|
||||
return info->state->records;
|
||||
return HA_POS_ERROR;
|
||||
|
||||
if ((root = info->s->state.key_root[keynr]) == HA_OFFSET_ERROR)
|
||||
return HA_POS_ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue