[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] replace grn_table_open/grn_column_open into grn_ctx_get/grn_obj_column.

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:19:05 JST 2012


Tetsuro IKEDA	2009-06-30 14:08:27 +0900 (Tue, 30 Jun 2009)

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

  Log:
    replace grn_table_open/grn_column_open into grn_ctx_get/grn_obj_column.

  Modified files:
    test/unit/test-driver.c

  Modified: test/unit/test-driver.c (+4 -7)
===================================================================
--- test/unit/test-driver.c    2009-06-30 13:49:00 +0900 (6a4731a)
+++ test/unit/test-driver.c    2009-06-30 14:08:27 +0900 (ec1b683)
@@ -182,15 +182,12 @@ void test_mrn_create()
 
   cut_assert_equal_int(0, mrn_create(ctx, info));
 
-  cut_assert_not_null((obj = grn_table_open(ctx, "test/t1", strlen("test/t1"), NULL)));
-  cut_assert_not_null((obj2 = grn_column_open(ctx, obj, "c1", strlen("c1"),
-                                              NULL, grn_ctx_at(ctx, GRN_DB_INT32))));
+  cut_assert_not_null((obj = grn_ctx_get(ctx, "test/t1", strlen("test/t1"))));
+  cut_assert_not_null((obj2 = grn_obj_column(ctx, obj, "c1", strlen("c1"))));
   grn_obj_close(ctx, obj2);
-  cut_assert_not_null((obj2 = grn_column_open(ctx, obj, "c2", strlen("c2"),
-                                              NULL, grn_ctx_at(ctx, GRN_DB_TEXT))));
+  cut_assert_not_null((obj2 = grn_obj_column(ctx, obj, "c2", strlen("c2"))));
   grn_obj_close(ctx, obj2);
-  cut_assert_null((obj2 = grn_column_open(ctx, obj, "c3", strlen("c3"),
-                                          NULL, grn_ctx_at(ctx, GRN_DB_TEXT))));
+  cut_assert_null((obj2 = grn_obj_column(ctx, obj, "c3", strlen("c3"))));
   grn_obj_close(ctx, obj);
 
   mrn_deinit_create_info(ctx, info);
-------------- next part --------------
HTML����������������������������...
Download 



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