You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We get database collation by checking:
SELECT DATABASEPROPERTYEX('', 'Collation')
If the database collation is case sensitive (Latin1_General_BIN) and django tries to do case insensitive filtration such as icontains can we append the corresponding case insensitive collation (Latin1_General_CI_AS) just behind column name ?
The sql query will look like:
select * from where COLLATE Latin1_General_CI_AS like 'test%'
instead of
select * from where like 'test%'
The text was updated successfully, but these errors were encountered:
There is a similar ticket for django-mssql:
https://bitbucket.org/Manfre/django-mssql/issue/36/support-case-sensitive-comparisons
We get database collation by checking:
SELECT DATABASEPROPERTYEX('', 'Collation')
If the database collation is case sensitive (Latin1_General_BIN) and django tries to do case insensitive filtration such as icontains can we append the corresponding case insensitive collation (Latin1_General_CI_AS) just behind column name ?
The sql query will look like:
select * from where COLLATE Latin1_General_CI_AS like 'test%'
instead of
select * from where like 'test%'
The text was updated successfully, but these errors were encountered: