lib/thinking_sphinx/field.rb in warp-thinking-sphinx-1.3.13 vs lib/thinking_sphinx/field.rb in warp-thinking-sphinx-1.3.16

- old
+ new

@@ -67,15 +67,14 @@ # # This will concatenate strings if there's more than one data source or # multiple data values (has_many or has_and_belongs_to_many associations). # def to_select_sql - clause = @columns.collect { |column| - column_with_prefix(column) - }.join(', ') + clause = columns_with_prefixes.join(', ') clause = adapter.concatenate(clause) if concat_ws? + #~ clause = adapter.group_concatenate(clause) if is_many? - "#{adapter.cast_to_string clause } AS #{quote_column(unique_name)}" + "#{clause} AS #{quote_column(unique_name)}" end end end