mirror of
https://github.com/django/django.git
synced 2025-09-04 17:50:44 +00:00
Fixed #22738 -- made finer distinctions for when Boolean is not detected on Oracle
Thanks Claude Paroz for partial fix and Simon Charrette for review
This commit is contained in:
parent
dbdae3a755
commit
c1ae0621ba
5 changed files with 40 additions and 22 deletions
|
@ -178,7 +178,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
supports_regex_backreferencing = False
|
||||
supports_date_lookup_using_string = False
|
||||
can_introspect_binary_field = False
|
||||
introspected_boolean_field_type = 'IntegerField'
|
||||
can_introspect_small_integer_field = True
|
||||
supports_timezones = False
|
||||
requires_explicit_null_ordering_when_grouping = True
|
||||
|
@ -225,6 +224,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
cursor.execute("SELECT 1 FROM mysql.time_zone LIMIT 1")
|
||||
return cursor.fetchone() is not None
|
||||
|
||||
def introspected_boolean_field_type(self, *args):
|
||||
return 'IntegerField'
|
||||
|
||||
|
||||
class DatabaseOperations(BaseDatabaseOperations):
|
||||
compiler_module = "django.db.backends.mysql.compiler"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue