[Groonga-commit] groonga/grnxx at 4157b23 [master] Change the default value of IntColumn from false to 0.

Back to archive index

susumu.yata null+****@clear*****
Fri Jul 4 18:28:34 JST 2014


susumu.yata	2014-07-04 18:28:34 +0900 (Fri, 04 Jul 2014)

  New Revision: 4157b23a7badfef5761b31c4da6089fc449c33af
  https://github.com/groonga/grnxx/commit/4157b23a7badfef5761b31c4da6089fc449c33af

  Message:
    Change the default value of IntColumn from false to 0.

  Modified files:
    lib/grnxx/column.cpp

  Modified: lib/grnxx/column.cpp (+2 -2)
===================================================================
--- lib/grnxx/column.cpp    2014-07-04 18:28:02 +0900 (a2b3f72)
+++ lib/grnxx/column.cpp    2014-07-04 18:28:34 +0900 (52f63ea)
@@ -263,12 +263,12 @@ bool IntColumn::set_default_value(Error *error, Int row_id) {
       return false;
     }
   }
-  values_[row_id] = false;
+  values_[row_id] = 0;
   return true;
 }
 
 void IntColumn::unset(Int row_id) {
-  values_[row_id] = false;
+  values_[row_id] = 0;
 }
 
 IntColumn::IntColumn() : Column(), values_() {}
-------------- next part --------------
HTML����������������������������...
Download 



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