Skip to content

Commit b9f9ae7

Browse files
committed
startswith
1 parent fcd77a1 commit b9f9ae7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

django_iris/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ class DatabaseWrapper(BaseDatabaseWrapper):
7777
'iexact': "LIKE %s ESCAPE '\\'",
7878
'contains': "LIKE %s ESCAPE '\\'",
7979
'icontains': "LIKE %s ESCAPE '\\'",
80-
# 'regex': 'REGEXP %s',
81-
# 'iregex': "REGEXP '(?i)' || %s",
80+
# 'regex': "%%%%MATCHES %s ESCAPE '\\'",
81+
# 'iregex': "%%%%MATCHES %s ESCAPE '\\'",
8282
'gt': '> %s',
8383
'gte': '>= %s',
8484
'lt': '< %s',
8585
'lte': '<= %s',
86-
'startswith': "%STARTSWITH %s",
86+
'startswith': "%%%%STARTSWITH %s",
8787
'endswith': "LIKE %s ESCAPE '\\'",
88-
'istartswith': "%STARTSWITH %s",
88+
'istartswith': "%%%%STARTSWITH %s",
8989
'iendswith': "LIKE %s ESCAPE '\\'",
9090

9191
}

0 commit comments

Comments
 (0)