reverted c998d6a as this went to the hotfix-branch

pull/6827/head
Philipp Tessenow 14 years ago
parent c998d6aeab
commit ff23b30616
  1. 4
      app/models/cost_query/query_utils.rb

@ -128,7 +128,7 @@ module CostQuery::QueryUtils
field = field_name_for(field, default_table)
"-- code specific for #{adapter_name}\n\t" << \
case adapter_name
when :mysql, :mysql2
when :mysql
"yearweek(#{field}, 1)"
when :postgresql
"(EXTRACT(isoyear from #{field})*100 + \n\t\t" \
@ -216,4 +216,4 @@ module CostQuery::QueryUtils
super
klass.extend self
end
end
end

Loading…
Cancel
Save