mirror of
https://github.com/django/django.git
synced 2025-09-10 04:26:30 +00:00
Fixed #7190 -- Corrected a problem with Boolean value handling on the MySQL backend. Thanks to George Vilches for the initial patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12900 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2fa2cf0a09
commit
271bcda04a
4 changed files with 62 additions and 2 deletions
|
@ -125,6 +125,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
related_fields_match_type = True
|
||||
|
||||
class DatabaseOperations(BaseDatabaseOperations):
|
||||
compiler_module = "django.db.backends.mysql.compiler"
|
||||
|
||||
def date_extract_sql(self, lookup_type, field_name):
|
||||
# http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html
|
||||
if lookup_type == 'week_day':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue