[Groonga-mysql-commit] mroonga/mroonga [master] fix clashing bug at creating table without key. refs #1644

Back to archive index

Kentoku null+****@clear*****
Thu Mar 21 21:59:24 JST 2013


Kentoku	2013-03-21 21:59:24 +0900 (Thu, 21 Mar 2013)

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

  Message:
    fix clashing bug at creating table without key. refs #1644

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2013-03-21 03:49:35 +0900 (3eee1da)
+++ ha_mroonga.cpp    2013-03-21 21:59:24 +0900 (8ff28f7)
@@ -3118,7 +3118,7 @@ int ha_mroonga::storage_create(const char *name, TABLE *table,
     DBUG_RETURN(error);
   }
 
-  if (table_flags & GRN_OBJ_TABLE_PAT_KEY) {
+  if (table_flags == (GRN_OBJ_PERSISTENT | GRN_OBJ_TABLE_PAT_KEY)) {
     KEY key_info = table->s->key_info[pkey_nr];
     int key_parts = KEY_N_KEY_PARTS(&key_info);
     if (key_parts == 1) {
-------------- next part --------------
HTML����������������������������...
다운로드 



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