mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
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
This commit is contained in:
parent
ab34455cdd
commit
a2a59448b4
@ -602,6 +602,16 @@ class QueryTest < ActiveSupport::TestCase
|
|||||||
result.each {|issue| assert issue.subject.downcase.include?('cdef') }
|
result.each {|issue| assert issue.subject.downcase.include?('cdef') }
|
||||||
end
|
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
|
def test_operator_does_not_contain
|
||||||
issue = Issue.generate!(:subject => 'AbCdEfG')
|
issue = Issue.generate!(:subject => 'AbCdEfG')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user