[Groonga-mysql-commit] mroonga/mroonga at 2908d38 [master] Fix a bug that MRBContains() doesn't use index

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Oct 23 00:29:46 JST 2015


Kouhei Sutou	2015-10-23 00:29:46 +0900 (Fri, 23 Oct 2015)

  New Revision: 2908d3896abd106e4165f0ec081aa39206b94295
  https://github.com/mroonga/mroonga/commit/2908d3896abd106e4165f0ec081aa39206b94295

  Message:
    Fix a bug that MRBContains() doesn't use index
    
    GitHub: fix #73
    
    Reported by Petri Rautiainen. Thanks!!!

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2015-10-22 23:28:25 +0900 (7cb6776)
+++ ha_mroonga.cpp    2015-10-23 00:29:46 +0900 (edd3a26)
@@ -2766,7 +2766,7 @@ ulong ha_mroonga::index_flags(uint idx, uint part, bool all_parts) const
     DBUG_RETURN(HA_ONLY_WHOLE_INDEX | HA_KEY_SCAN_NOT_ROR);
   }
   if (mrn_is_geo_key(key)) {
-    DBUG_RETURN(HA_ONLY_WHOLE_INDEX | HA_KEY_SCAN_NOT_ROR);
+    DBUG_RETURN(HA_ONLY_WHOLE_INDEX | HA_KEY_SCAN_NOT_ROR | HA_READ_RANGE);
   }
 
   int error = 0;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index