Masafumi Yokoyama
null+****@clear*****
Wed Oct 5 19:25:24 JST 2016
Masafumi Yokoyama 2016-10-05 19:25:24 +0900 (Wed, 05 Oct 2016) New Revision: 9bde4a5b663d3b2c68c26ab1ccce8b9872ec0802 https://github.com/ranguba/rroonga/commit/9bde4a5b663d3b2c68c26ab1ccce8b9872ec0802 Merged bfbcf5d: Merge pull request #133 from ranguba/specify-key-type-for-table-hash-key-table Message: Specify key_type for TABHE_HASH_KEY table GitHub: groonga/groonga#599 Modified files: ext/groonga/rb-grn-table.c Modified: ext/groonga/rb-grn-table.c (+3 -1) =================================================================== --- ext/groonga/rb-grn-table.c 2016-10-05 16:35:29 +0900 (0082f25) +++ ext/groonga/rb-grn-table.c 2016-10-05 19:25:24 +0900 (b4dcfab) @@ -583,6 +583,7 @@ rb_grn_table_get_columns (int argc, VALUE *argv, VALUE self) grn_ctx *context = NULL; grn_obj *table; grn_obj *columns; + grn_obj *key_type = NULL; grn_rc rc; int n; grn_table_cursor *cursor; @@ -603,8 +604,9 @@ rb_grn_table_get_columns (int argc, VALUE *argv, VALUE self) name_size = RSTRING_LEN(rb_name); } + key_type = grn_ctx_at(context, GRN_DB_SHORT_TEXT); columns = grn_table_create(context, NULL, 0, NULL, GRN_TABLE_HASH_KEY, - NULL, 0); + key_type, 0); rb_grn_context_check(context, self); n = grn_table_columns(context, table, name, name_size, columns); rb_grn_context_check(context, self); -------------- next part -------------- HTML����������������������������...Download