summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-03 11:21:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-03 11:21:03 +0000
commit0135dc504a251f2d685b4ace20960437de087b83 (patch)
tree67b9887e646d829eca2206817d434cad37f8fd0e /test
parent9c561f912435d92a21afcfe07bac6a3cf9d462ba (diff)
downloadredmine-0135dc504a251f2d685b4ace20960437de087b83.tar.gz
redmine-0135dc504a251f2d685b4ace20960437de087b83.zip
SQLServer: The size (60) given to the type 'decimal' exceeds the maximum allowed (#12713).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11098 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/query_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index 7c13156f8..3b92ea4dd 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -328,7 +328,7 @@ class QueryTest < ActiveSupport::TestCase
f = IssueCustomField.create!(:name => 'filter', :field_format => 'int', :is_filter => true, :is_for_all => true)
query = IssueQuery.new(:project => Project.find(1), :name => '_')
query.add_filter("cf_#{f.id}", '<=', ['30'])
- assert query.statement.include?("CAST(custom_values.value AS decimal(60,3)) <= 30.0")
+ assert query.statement.include?("CAST(custom_values.value AS decimal(30,3)) <= 30.0")
find_issues_with_query(query)
end
@@ -343,7 +343,7 @@ class QueryTest < ActiveSupport::TestCase
f = IssueCustomField.create!(:name => 'filter', :field_format => 'int', :is_filter => true, :is_for_all => true)
query = IssueQuery.new(:project => Project.find(1), :name => '_')
query.add_filter("cf_#{f.id}", '><', ['30', '40'])
- assert_include "CAST(custom_values.value AS decimal(60,3)) BETWEEN 30.0 AND 40.0", query.statement
+ assert_include "CAST(custom_values.value AS decimal(30,3)) BETWEEN 30.0 AND 40.0", query.statement
find_issues_with_query(query)
end