Yoji Shidara
null+****@clear*****
Thu Feb 27 12:25:06 JST 2014
Yoji Shidara 2014-02-27 12:25:06 +0900 (Thu, 27 Feb 2014) New Revision: 1946a84f3d6355ef100e4b4cf548817e1ed10999 https://github.com/droonga/fluent-plugin-droonga/commit/1946a84f3d6355ef100e4b4cf548817e1ed10999 Message: Consider case when _key is specified as a source Modified files: lib/droonga/catalog/schema.rb Modified: lib/droonga/catalog/schema.rb (+2 -0) =================================================================== --- lib/droonga/catalog/schema.rb 2014-02-27 12:20:08 +0900 (800f091) +++ lib/droonga/catalog/schema.rb 2014-02-27 12:25:06 +0900 (64f2e10) @@ -222,7 +222,9 @@ module Droonga def tsort_each_child(column, &block) dependent_column_names = column.index_options.sources || [] + dependent_column_names.delete("_key") # _key always exists after the table created reference_table = @tables[column.value_type_groonga] + # TODO when _key specified, check to ensure reference_table is not Array dependent_columns = dependent_column_names.collect do |column_name| reference_table.columns[column_name] end -------------- next part -------------- HTML����������������������������... 下载