freelancing-god-thinking-sphinx 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/thinking_sphinx.rb +1 -1
- data/lib/thinking_sphinx/attribute.rb +2 -2
- metadata +1 -1
data/lib/thinking_sphinx.rb
CHANGED
@@ -167,7 +167,7 @@ module ThinkingSphinx
|
|
167
167
|
end
|
168
168
|
end
|
169
169
|
|
170
|
-
def cast_to_datetime(
|
170
|
+
def cast_to_datetime(clause)
|
171
171
|
case @model.connection.class.name
|
172
172
|
when "ActiveRecord::ConnectionAdapters::MysqlAdapter"
|
173
173
|
"UNIX_TIMESTAMP(#{clause})"
|
@@ -178,7 +178,7 @@ module ThinkingSphinx
|
|
178
178
|
end
|
179
179
|
end
|
180
180
|
|
181
|
-
def convert_nulls(
|
181
|
+
def convert_nulls(clause)
|
182
182
|
case @model.connection.class.name
|
183
183
|
when "ActiveRecord::ConnectionAdapters::MysqlAdapter"
|
184
184
|
"IFNULL(#{clause}, '')"
|