Commit d99d2c69cb20ad321456109f71373242b17dfc1a
1 parent
99f16d47
Exists in
master
and in
12 other branches
Add Mysql2Spatial adapter support
Signed-off-by: Max Riveiro <kavu13@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/groupdate/magic.rb
... | ... | @@ -36,7 +36,7 @@ module Groupdate |
36 | 36 | adapter_name = relation.connection.adapter_name |
37 | 37 | query = |
38 | 38 | case adapter_name |
39 | - when "MySQL", "Mysql2" | |
39 | + when "MySQL", "Mysql2", "Mysql2Spatial" | |
40 | 40 | case field |
41 | 41 | when :day_of_week # Sunday = 0, Monday = 1, etc |
42 | 42 | # use CONCAT for consistent return type (String) | ... | ... |