diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-04-24 10:57:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-04-24 10:57:05 +0000 |
commit | a2a59448b43ca8e047b18ac1af45c92b46f0c0ab (patch) | |
tree | a0f5deb7393a6cc0c75cc0a48a5edf9d6aef2e1b /test/unit | |
parent | ab34455cdd5691b67119cf8ed41e0b7fc2822397 (diff) | |
download | redmine-a2a59448b43ca8e047b18ac1af45c92b46f0c0ab.tar.gz redmine-a2a59448b43ca8e047b18ac1af45c92b46f0c0ab.zip |
SQL server: non ASCII filter on issue subject does not work (#22405).
git-svn-id: http://svn.redmine.org/redmine/trunk@15350 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/query_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb index 433691808..86c0effe8 100644 --- a/test/unit/query_test.rb +++ b/test/unit/query_test.rb @@ -602,6 +602,16 @@ class QueryTest < ActiveSupport::TestCase result.each {|issue| assert issue.subject.downcase.include?('cdef') } end + def test_operator_contains_with_utf8_string + issue = Issue.generate!(:subject => 'Subject contains Kiểm') + + query = IssueQuery.new(:name => '_') + query.add_filter('subject', '~', ['Kiểm']) + result = find_issues_with_query(query) + assert_include issue, result + assert_equal 1, result.size + end + def test_operator_does_not_contain issue = Issue.generate!(:subject => 'AbCdEfG') |