Sha256: 908030c47a09b8d1b904f7e160a09aa0717792b5792f96f1c03d627f264d86ce
Contents?: true
Size: 668 Bytes
Versions: 2
Compression:
Stored size: 668 Bytes
Contents
class ThinkingSphinx::ActiveRecord::DatabaseAdapters::MySQLAdapter < ThinkingSphinx::ActiveRecord::DatabaseAdapters::AbstractAdapter def boolean_value(value) value ? 1 : 0 end def cast_to_string(clause) "CAST(#{clause} AS char)" end def cast_to_timestamp(clause) "UNIX_TIMESTAMP(#{clause})" end def concatenate(clause, separator = ' ') "CONCAT_WS('#{separator}', #{clause})" end def convert_nulls(clause, default = '') "IFNULL(#{clause}, #{default})" end def group_concatenate(clause, separator = ' ') "GROUP_CONCAT(#{clause} SEPARATOR '#{separator}')" end def utf8_query_pre ['SET NAMES utf8'] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thinking-sphinx-3.0.4 | lib/thinking_sphinx/active_record/database_adapters/mysql_adapter.rb |
thinking-sphinx-3.0.3 | lib/thinking_sphinx/active_record/database_adapters/mysql_adapter.rb |