[Groonga-mysql-commit] mroonga/mroonga at 103493d [master] mysql57: follow foreign key type change

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Mar 16 22:52:46 JST 2015


Kouhei Sutou	2015-03-16 22:52:46 +0900 (Mon, 16 Mar 2015)

  New Revision: 103493da2dfd4f9f60cdb270db48d4b20228a3f3
  https://github.com/mroonga/mroonga/commit/103493da2dfd4f9f60cdb270db48d4b20228a3f3

  Message:
    mysql57: follow foreign key type change

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+7 -1)
===================================================================
--- ha_mroonga.cpp    2015-03-16 22:48:37 +0900 (f7fabac)
+++ ha_mroonga.cpp    2015-03-16 22:52:46 +0900 (dbb294d)
@@ -187,6 +187,12 @@ static mysql_mutex_t *mrn_LOCK_open;
 #  define MRN_LEX_GET_TABLE_LIST(lex) (lex)->select_lex.table_list.first
 #endif
 
+#if MYSQL_VERSION_ID >= 50706 && !defined(MRN_MARIADB_P)
+#  define MRN_KEYTYPE_FOREIGN KEYTYPE_FOREIGN
+#else
+#  define MRN_KEYTYPE_FOREIGN Key::FOREIGN_KEY
+#endif
+
 Rpl_filter *mrn_binlog_filter;
 Time_zone *mrn_my_tz_UTC;
 #ifdef MRN_HAVE_TABLE_DEF_CACHE
@@ -3285,7 +3291,7 @@ bool ha_mroonga::storage_create_foreign_key(TABLE *table,
   char ref_db_buff[NAME_LEN + 1], ref_table_buff[NAME_LEN + 1];
   while ((key = key_iterator++))
   {
-    if (key->type != Key::FOREIGN_KEY)
+    if (key->type != MRN_KEYTYPE_FOREIGN)
     {
       continue;
     }
-------------- next part --------------
HTML����������������������������...
Télécharger 



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