[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] [wrapper][fulltext] create empty FT_INFO.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:34:22 JST 2012


Kouhei Sutou	2011-06-18 10:20:21 +0900 (Sat, 18 Jun 2011)

  New Revision: 5fae88204af16fb6bbdff64d07fc8ed0445089e7
  https://github.com/mroonga/mroonga/commit/5fae88204af16fb6bbdff64d07fc8ed0445089e7

  Log:
    [wrapper][fulltext] create empty FT_INFO.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+8 -1)
===================================================================
--- ha_mroonga.cc    2011-06-18 10:19:29 +0900 (f16d67a)
+++ ha_mroonga.cc    2011-06-18 10:20:21 +0900 (46d4004)
@@ -3684,7 +3684,14 @@ int ha_mroonga::ft_init()
 FT_INFO *ha_mroonga::wrapper_ft_init_ext(uint flags, uint key_nr, String *key)
 {
   MRN_DBUG_ENTER_METHOD();
-  DBUG_RETURN(0);
+  struct st_mrn_ft_info *info = new st_mrn_ft_info();
+  info->please = &mrn_wrapper_ft_vft;
+  info->ctx = ctx;
+  info->result = grn_table_create(ctx, NULL, 0, NULL,
+                                  GRN_TABLE_HASH_KEY | GRN_OBJ_WITH_SUBREC,
+                                  grn_table, 0);
+  info->rid = GRN_ID_NIL;
+  DBUG_RETURN((FT_INFO *)info);
 }
 
 FT_INFO *ha_mroonga::default_ft_init_ext(uint flags, uint key_nr, String *key)
-------------- next part --------------
HTML����������������������������...
Download 



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