From ce729a0f2408ba8c94c2e36c05628f2b1a8e5ea1 Mon Sep 17 00:00:00 2001 From: Philipp Tessenow Date: Mon, 8 Nov 2010 10:49:15 +0100 Subject: [PATCH] accept anycase adapter names --- app/models/cost_query/query_utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/cost_query/query_utils.rb b/app/models/cost_query/query_utils.rb index 224cce3ab7..62dc9167ba 100644 --- a/app/models/cost_query/query_utils.rb +++ b/app/models/cost_query/query_utils.rb @@ -127,7 +127,7 @@ module CostQuery::QueryUtils def iso_year_week(field, default_table = nil) field = field_name_for(field, default_table) "-- code specific for #{adapter_name}\n\t" << \ - case adapter_name + case adapter_name.to_s.downcase.to_sym when :mysql, :mysql2 "yearweek(#{field}, 1)" when :postgresql