[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] implemented index_flags().

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 11:03:51 JST 2012


Tetsuro IKEDA	2010-04-15 20:17:42 +0900 (Thu, 15 Apr 2010)

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

  Log:
    implemented index_flags().

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+6 -1)
===================================================================
--- ha_mroonga.cc    2010-04-15 19:30:40 +0900 (b2c1fcf)
+++ ha_mroonga.cc    2010-04-15 20:17:42 +0900 (1fa32e0)
@@ -449,7 +449,12 @@ ulonglong ha_mroonga::table_flags() const
 ulong ha_mroonga::index_flags(uint idx, uint part, bool all_parts) const
 {
   DBUG_ENTER("ha_mroonga::index_flags");
-  DBUG_RETURN(0);
+  KEY key = table_share->key_info[idx];
+  if (key.algorithm == HA_KEY_ALG_BTREE | key.algorithm == HA_KEY_ALG_UNDEF) {
+    DBUG_RETURN(HA_READ_NEXT | HA_READ_PREV | HA_READ_ORDER | HA_READ_RANGE);
+  } else {
+    DBUG_RETURN(HA_ONLY_WHOLE_INDEX | HA_KEY_SCAN_NOT_ROR);
+  }
 }
 
 int ha_mroonga::create(const char *name, TABLE *table, HA_CREATE_INFO *info)
-------------- next part --------------
HTML����������������������������...
Download 



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