[Groonga-commit] groonga/groonga [master] fix wrong OP_GET_VALUE n-args. but is it OK???

Back to archive index

null+****@clear***** null+****@clear*****
2011年 3月 13日 (日) 17:50:31 JST


Kouhei Sutou	2011-03-13 08:50:31 +0000 (Sun, 13 Mar 2011)

  New Revision: 82139860f8557abaad88fe3b44dcd43cea090a8f

  Log:
    fix wrong OP_GET_VALUE n-args. but is it OK???

  Modified files:
    test/unit/core/test-table-select.c

  Modified: test/unit/core/test-table-select.c (+5 -3)
===================================================================
--- test/unit/core/test-table-select.c    2011-03-13 05:27:43 +0000 (6d67b68)
+++ test/unit/core/test-table-select.c    2011-03-13 08:50:31 +0000 (b91e4ee)
@@ -1,5 +1,7 @@
 /* -*- c-basic-offset: 2; coding: utf-8 -*- */
-/* Copyright(C) 2009 Brazil
+/*
+  Copyright(C) 2009  Brazil
+  Copyright(C) 2011  Kouhei Sutou <kou****@clear*****>
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -85,7 +87,7 @@ cut_teardown(void)
   if (cond)
     grn_obj_close(&context, cond);
 
-  grn_db_close(&context, database);
+  grn_obj_close(&context, database);
   grn_ctx_fin(&context);
   cut_remove_path(tmp_directory, NULL);
   g_free(path);
@@ -210,7 +212,7 @@ test_equal(void)
   grn_expr_append_obj(&context, cond, v, GRN_OP_PUSH, 1);
   GRN_TEXT_SETS(&context, &textbuf, "body");
   grn_expr_append_const(&context, cond, &textbuf, GRN_OP_PUSH, 1);
-  grn_expr_append_op(&context, cond, GRN_OP_GET_VALUE, 2);
+  grn_expr_append_op(&context, cond, GRN_OP_GET_VALUE, 1);
   GRN_TEXT_SETS(&context, &textbuf, "poyo moge hoge moge moge moge");
   grn_expr_append_const(&context, cond, &textbuf, GRN_OP_PUSH, 1);
   grn_expr_append_op(&context, cond, GRN_OP_EQUAL, 2);




Groonga-commit メーリングリストの案内
Back to archive index