[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] fixed grn_table_cursor_open parameters.

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:29:16 JST 2012


Tetsuro IKEDA	2010-03-16 14:02:10 +0900 (Tue, 16 Mar 2010)

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

  Log:
    fixed grn_table_cursor_open parameters.

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

  Modified: driver.c (+3 -3)
===================================================================
--- driver.c    2010-03-16 13:26:47 +0900 (29993a6)
+++ driver.c    2010-03-16 14:02:10 +0900 (3866dd6)
@@ -657,19 +657,19 @@ int mrn_rnd_init(grn_ctx *ctx, mrn_info *info, mrn_expr *expr)
       }
       cur = cur->next;
     }
-
+    grn_expr_compile(ctx, gexpr);
     info->res = grn_table_create(ctx, NULL, 0, NULL,
                                  GRN_TABLE_HASH_KEY|GRN_OBJ_WITH_SUBREC,
                                  info->table->obj, NULL);
     grn_table_select(ctx, info->table->obj, gexpr, info->res, GRN_OP_OR);
     info->cursor = grn_table_cursor_open(ctx, info->res, NULL, 0, NULL,
-                                         0, 0, 0, 0);
+                                         0, 0, -1, 0);
     grn_obj_close(ctx, &intbuf);
     grn_obj_close(ctx, &textbuf);
   }
   else
   {
-    info->cursor = grn_table_cursor_open(ctx, info->table->obj, NULL, 0, NULL, 0, 0, 0, 0);
+    info->cursor = grn_table_cursor_open(ctx, info->table->obj, NULL, 0, NULL, 0, 0, -1, 0);
     if (info->cursor == NULL)
     {
       GRN_LOG(ctx, GRN_LOG_ERROR, "cannot open cursor: %s", info->table->name);

  Modified: test/run-unit-test.sh (+7 -1)
===================================================================
--- test/run-unit-test.sh    2010-03-16 13:26:47 +0900 (a777ed4)
+++ test/run-unit-test.sh    2010-03-16 14:02:10 +0900 (16d092a)
@@ -12,7 +12,7 @@ if test -z "$CUTTER"; then
 fi
 export CUTTER
 
-CUTTER_ARGS="-v v --fatal-failures"
+CUTTER_ARGS=
 CUTTER_WRAPPER=
 if test x"$CUTTER_DEBUG" = x"yes"; then
     if test x"$TUI_DEBUG" = x"yes"; then
@@ -27,5 +27,11 @@ elif test x"$CUTTER_CHECK_LEAK" = x"yes"; then
     CUTTER_ARGS="--keep-opening-modules"
 fi
 
+if test x"$STOP_ERROR" = x"yes"; then
+    CUTTER_ARGS="-v v --fatal-failures"
+else
+    CUTTER_ARGS="-v v"
+fi
+
 CUTTER_ARGS="$CUTTER_ARGS -s $BASE_DIR"
 $CUTTER_WRAPPER $CUTTER $CUTTER_ARGS "$@" $BASE_DIR
-------------- next part --------------
HTML����������������������������...
Download 



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