[Groonga-mysql-commit] mroonga/mroonga at c32a6cd [master] mysql8: stop to HA_KEY_ALG_UNDEF

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jul 9 19:10:23 JST 2018


Kouhei Sutou	2018-07-09 19:10:23 +0900 (Mon, 09 Jul 2018)

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

  Message:
    mysql8: stop to HA_KEY_ALG_UNDEF

  Modified files:
    mrn_table.cpp

  Modified: mrn_table.cpp (+5 -1)
===================================================================
--- mrn_table.cpp    2018-07-09 19:06:34 +0900 (ba056182)
+++ mrn_table.cpp    2018-07-09 19:10:23 +0900 (1b9375d0)
@@ -542,8 +542,12 @@ error:
 
 bool mrn_is_geo_key(const KEY *key_info)
 {
-  return key_info->algorithm == HA_KEY_ALG_UNDEF &&
+  return key_info->algorithm != HA_KEY_ALG_BTREE &&
+    key_info->algorithm != HA_KEY_ALG_RTREE &&
+    key_info->algorithm != HA_KEY_ALG_HASH &&
+    key_info->algorithm != HA_KEY_ALG_FULLTEXT &&
     KEY_N_KEY_PARTS(key_info) == 1 &&
+    key_info->key_part[0].field &&
     key_info->key_part[0].field->type() == MYSQL_TYPE_GEOMETRY;
 }
 
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20180709/6fac390a/attachment.htm 



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