Navigation Menu

Skip to content

Commit

Permalink
keep up-to-date with groonga.
Browse files Browse the repository at this point in the history
  • Loading branch information
mir committed Aug 8, 2009
1 parent 861e2f5 commit 40e8316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions driver.c
Expand Up @@ -99,7 +99,7 @@ int mrn_init()
if ((mrn_lexicon = grn_table_create(&ctx, MRN_LEXICON_TABLE_NAME,
strlen(MRN_LEXICON_TABLE_NAME), NULL,
GRN_OBJ_TABLE_PAT_KEY|GRN_OBJ_PERSISTENT,
grn_ctx_at(&ctx,GRN_DB_SHORT_TEXT), 0)))
grn_ctx_at(&ctx,GRN_DB_SHORTTEXT), 0)))
{
GRN_LOG(&ctx, GRN_LOG_NOTICE, "lexicon table created");
}
Expand Down Expand Up @@ -317,7 +317,7 @@ int mrn_create(grn_ctx *ctx, mrn_info *info)

table->obj = grn_table_create(ctx, table->name, table->name_size,
table->path, table->flags,
table->key_type, NULL);
table->key_type, 0);
if (table->obj == NULL)
{
GRN_LOG(ctx, GRN_LOG_ERROR, "cannot create table: name=%s, name_size=%d, path=%s, "
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test-driver.c
Expand Up @@ -542,7 +542,7 @@ void test_mrn_rnd_next()
res1 = GRN_INT32_VALUE(record->value[0]);
res2 = GRN_TEXT_VALUE(record->value[1]);
cut_assert_equal_int(100, res1);
cut_assert_equal_int(12, GRN_BULK_WSIZE(record->value[1]));
cut_assert_equal_int(12, GRN_TEXT_LEN(record->value[1]));
cut_assert_equal_int(0, strncmp(val2, res2, 12));

cut_assert_equal_int(0, mrn_rewind_record(ctx, record));
Expand Down

0 comments on commit 40e8316

Please sign in to comment.