[Groonga-commit] groonga/grnxx at a39f99d [master] Fix a bug that LOGICAL_NOT returns wrong results.

Back to archive index

susumu.yata null+****@clear*****
Tue Dec 16 10:42:23 JST 2014


susumu.yata	2014-11-13 19:39:40 +0900 (Thu, 13 Nov 2014)

  New Revision: a39f99d19714815ee4e7e4531dda557ce7b4c53a
  https://github.com/groonga/grnxx/commit/a39f99d19714815ee4e7e4531dda557ce7b4c53a

  Message:
    Fix a bug that LOGICAL_NOT returns wrong results.

  Modified files:
    lib/grnxx/impl/expression.cpp

  Modified: lib/grnxx/impl/expression.cpp (+1 -1)
===================================================================
--- lib/grnxx/impl/expression.cpp    2014-11-13 19:22:49 +0900 (1082a05)
+++ lib/grnxx/impl/expression.cpp    2014-11-13 19:39:40 +0900 (5d6c875)
@@ -516,7 +516,7 @@ void LogicalNotNode::filter(ArrayCRef<Record> input_records,
   // Extract records which appear in "input_records" and don't appear in "ref".
   size_t count = 0;
   for (size_t i = 0, j = 0; i < input_records.size(); ++i) {
-    if (input_records[i].row_id == ref[i].row_id) {
+    if (input_records[i].row_id == ref[j].row_id) {
       ++j;
       continue;
     }
-------------- next part --------------
HTML����������������������������...
다운로드 



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