[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] fixed table_flags for lexicon table to specify NORMALIZE. #627

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:22:25 JST 2012


Tetsuro IKEDA	2010-10-19 19:49:37 +0900 (Tue, 19 Oct 2010)

  New Revision: 065bb05a8f19b06cc4cc141233e082d4c723f04f
  https://github.com/mroonga/mroonga/commit/065bb05a8f19b06cc4cc141233e082d4c723f04f

  Log:
    fixed table_flags for lexicon table to specify NORMALIZE. #627

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+3 -3)
===================================================================
--- ha_mroonga.cc    2010-10-18 20:15:49 +0900 (515cc4b)
+++ ha_mroonga.cc    2010-10-19 19:49:37 +0900 (646510c)
@@ -825,11 +825,11 @@ int ha_mroonga::create(const char *name, TABLE *table, HA_CREATE_INFO *info)
     int key_alg = key_info.algorithm;
     grn_obj_flags idx_tbl_flags;
     if (key_alg == HA_KEY_ALG_FULLTEXT) {
-      idx_tbl_flags = GRN_OBJ_TABLE_PAT_KEY | GRN_OBJ_PERSISTENT;
+      idx_tbl_flags = GRN_OBJ_TABLE_PAT_KEY | GRN_OBJ_PERSISTENT | GRN_OBJ_KEY_NORMALIZE;
     } else if (key_alg == HA_KEY_ALG_HASH) {
-      idx_tbl_flags = GRN_OBJ_TABLE_HASH_KEY | GRN_OBJ_PERSISTENT;
+      idx_tbl_flags = GRN_OBJ_TABLE_HASH_KEY | GRN_OBJ_PERSISTENT | GRN_OBJ_KEY_NORMALIZE;
     } else {
-      idx_tbl_flags = GRN_OBJ_TABLE_PAT_KEY | GRN_OBJ_PERSISTENT;
+      idx_tbl_flags = GRN_OBJ_TABLE_PAT_KEY | GRN_OBJ_PERSISTENT | GRN_OBJ_KEY_NORMALIZE;
     }
 
     idx_tbl_obj = grn_table_create(ctx, idx_name, strlen(idx_name), NULL,
-------------- next part --------------
HTML����������������������������...
Download 



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