[Groonga-mysql-commit] mroonga/mroonga [master] Specify GRN_CURSOR_GE and GRN_CURSOR_ASCENDING explicitly.

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Oct 5 23:48:54 JST 2012


Kouhei Sutou	2012-10-05 23:48:54 +0900 (Fri, 05 Oct 2012)

  New Revision: f6f4475fb82bb3a6c1cc6f9fd39d1010b00f2dc9
  https://github.com/mroonga/mroonga/commit/f6f4475fb82bb3a6c1cc6f9fd39d1010b00f2dc9

  Log:
    Specify GRN_CURSOR_GE and GRN_CURSOR_ASCENDING explicitly.
    
    They are the default.
    
    I don't know what SQL uses the logic...

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+3 -0)
===================================================================
--- ha_mroonga.cpp    2012-10-05 23:43:01 +0900 (cc0a36a)
+++ ha_mroonga.cpp    2012-10-05 23:48:54 +0900 (46dd236)
@@ -6307,6 +6307,9 @@ int ha_mroonga::storage_index_read_map(uchar *buf, const uchar *key,
   case HA_READ_AFTER_KEY:
     flags |= GRN_CURSOR_GT | GRN_CURSOR_ASCENDING;
     break;
+  case HA_READ_KEY_OR_NEXT:
+    flags |= GRN_CURSOR_GE | GRN_CURSOR_ASCENDING;
+    break;
   default:
     break;
   }
-------------- next part --------------
HTML����������������������������...
Download 



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