We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd77a1 commit b9f9ae7Copy full SHA for b9f9ae7
django_iris/base.py
@@ -77,15 +77,15 @@ class DatabaseWrapper(BaseDatabaseWrapper):
77
'iexact': "LIKE %s ESCAPE '\\'",
78
'contains': "LIKE %s ESCAPE '\\'",
79
'icontains': "LIKE %s ESCAPE '\\'",
80
- # 'regex': 'REGEXP %s',
81
- # 'iregex': "REGEXP '(?i)' || %s",
+ # 'regex': "%%%%MATCHES %s ESCAPE '\\'",
+ # 'iregex': "%%%%MATCHES %s ESCAPE '\\'",
82
'gt': '> %s',
83
'gte': '>= %s',
84
'lt': '< %s',
85
'lte': '<= %s',
86
- 'startswith': "%STARTSWITH %s",
+ 'startswith': "%%%%STARTSWITH %s",
87
'endswith': "LIKE %s ESCAPE '\\'",
88
- 'istartswith': "%STARTSWITH %s",
+ 'istartswith': "%%%%STARTSWITH %s",
89
'iendswith': "LIKE %s ESCAPE '\\'",
90
91
}
0 commit comments