mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #28854 -- Replaced type(True) with bool in sqlite's SchemaEditor.
This commit is contained in:
parent
4f5526e346
commit
3308085838
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
|
|||
except sqlite3.ProgrammingError:
|
||||
pass
|
||||
# Manual emulation of SQLite parameter quoting
|
||||
if isinstance(value, type(True)):
|
||||
if isinstance(value, bool):
|
||||
return str(int(value))
|
||||
elif isinstance(value, (Decimal, float, int)):
|
||||
return str(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue