[Groonga-commit] groonga/grnxx at bfa0396 [master] Fix a bug that registers a referrer column to a wrong table. (#71)

Back to archive index

susumu.yata null+****@clear*****
Fri Oct 3 10:58:39 JST 2014


susumu.yata	2014-10-03 10:58:39 +0900 (Fri, 03 Oct 2014)

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

  Message:
    Fix a bug that registers a referrer column to a wrong table. (#71)

  Modified files:
    lib/grnxx/column.cpp

  Modified: lib/grnxx/column.cpp (+2 -2)
===================================================================
--- lib/grnxx/column.cpp    2014-10-03 10:49:48 +0900 (f9e2edd)
+++ lib/grnxx/column.cpp    2014-10-03 10:58:39 +0900 (5e25e18)
@@ -404,7 +404,7 @@ unique_ptr<ColumnImpl<Int>> ColumnImpl<Int>::create(
     return nullptr;
   }
   if (column->ref_table()) {
-    if (!table->append_referrer_column(error, column.get())) {
+    if (!column->ref_table()->append_referrer_column(error, column.get())) {
       return nullptr;
     }
   }
@@ -935,7 +935,7 @@ unique_ptr<ColumnImpl<Vector<Int>>> ColumnImpl<Vector<Int>>::create(
     return nullptr;
   }
   if (column->ref_table()) {
-    if (!table->append_referrer_column(error, column.get())) {
+    if (!column->ref_table()->append_referrer_column(error, column.get())) {
       return nullptr;
     }
   }
-------------- next part --------------
HTML����������������������������...
Download 



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