Skip to content

Commit

Permalink
Merge pull request #578 from groonga/revert-570-table-create-validate…
Browse files Browse the repository at this point in the history
…-no-key-type-for-non-no-key

Revert "db: validate key_type existance when table type is not TABLE_NO_KEY"
  • Loading branch information
kou committed Jul 5, 2016
2 parents 3874b30 + ab7b7ff commit e318893
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/db.c
Expand Up @@ -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,
Expand Down

0 comments on commit e318893

Please sign in to comment.