[Groonga-commit] groonga/groonga at ab7b7ff [master] Revert "db: validate key_type existance when table type is not TABLE_NO_KEY"

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jul 5 17:42:11 JST 2016


Kouhei Sutou	2016-07-05 17:42:11 +0900 (Tue, 05 Jul 2016)

  New Revision: ab7b7ffc09c636661825ee209614bfd095d04a40
  https://github.com/groonga/groonga/commit/ab7b7ffc09c636661825ee209614bfd095d04a40

  Merged e318893: Merge pull request #578 from groonga/revert-570-table-create-validate-no-key-type-for-non-no-key

  Message:
    Revert "db: validate key_type existance when table type is not TABLE_NO_KEY"

  Modified files:
    lib/db.c

  Modified: lib/db.c (+0 -8)
===================================================================
--- lib/db.c    2016-07-05 17:39:42 +0900 (3ffe47a)
+++ lib/db.c    2016-07-05 17:42:11 +0900 (a3d5ff3)
@@ -1011,14 +1011,6 @@ grn_table_create_validate(grn_ctx *ctx, const char *name, unsigned int name_size
     return ctx->rc;
   }
 
-  if (!key_type && table_type != GRN_OBJ_TABLE_NO_KEY) {
-    ERR(GRN_INVALID_ARGUMENT,
-        "[table][create] "
-        "key is necessary for %s table: <%.*s>",
-        table_type_name, name_size, name);
-    return ctx->rc;
-  }
-
   if ((flags & GRN_OBJ_KEY_WITH_SIS) &&
       table_type != GRN_OBJ_TABLE_PAT_KEY) {
     ERR(GRN_INVALID_ARGUMENT,
-------------- next part --------------
HTML����������������������������...
Télécharger 



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