[Groonga-mysql-commit] mroonga/mroonga at 2b15a8d [master] Add missing table type check for no primary key check

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Nov 27 17:21:55 JST 2014


Kouhei Sutou	2014-11-27 17:21:55 +0900 (Thu, 27 Nov 2014)

  New Revision: 2b15a8ddc8ff24afec7fd73b9f88cbfa9dfb8105
  https://github.com/mroonga/mroonga/commit/2b15a8ddc8ff24afec7fd73b9f88cbfa9dfb8105

  Message:
    Add missing table type check for no primary key check
    
    Because NO_KEY table doesn't require primary key.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2014-11-27 12:07:25 +0900 (2d28fdf)
+++ ha_mroonga.cpp    2014-11-27 17:21:55 +0900 (c93374f)
@@ -5290,7 +5290,7 @@ int ha_mroonga::storage_write_row(uchar *buf)
     }
   }
 
-  if (pkey_size == 0) {
+  if (grn_table->header.type != GRN_TABLE_NO_KEY && pkey_size == 0) {
     my_message(ER_ERROR_ON_WRITE, "primary key is empty", MYF(0));
     DBUG_RETURN(ER_ERROR_ON_WRITE);
   }
-------------- next part --------------
HTML����������������������������...
Download 



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