[Groonga-mysql-commit] mroonga/mroonga [master] Fix a bug that wrong object is checked

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 16 17:58:32 JST 2013


Kouhei Sutou	2013-04-16 17:58:32 +0900 (Tue, 16 Apr 2013)

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

  Message:
    Fix a bug that wrong object is checked
    
    The code should check whether column value is vector or not. Range is
    a table not a column.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2013-04-16 14:07:17 +0900 (8a3c01f)
+++ ha_mroonga.cpp    2013-04-16 17:58:32 +0900 (bfa66a3)
@@ -10030,7 +10030,7 @@ void ha_mroonga::storage_store_fields(uchar *buf, grn_id record_id)
         if (GRN_TABLE_HASH_KEY <= range->header.type &&
             range->header.type <= GRN_DB) {
           // TODO: extract as a method
-          if (((range->header.flags & GRN_OBJ_COLUMN_TYPE_MASK) ==
+          if (((grn_columns[i]->header.flags & GRN_OBJ_COLUMN_TYPE_MASK) ==
                GRN_OBJ_COLUMN_VECTOR)) {
             // TODO: Check whether reference type or not
             grn_obj unvectored_value;
-------------- next part --------------
HTML����������������������������...
Download 



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