mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-16 05:24:26 +02:00
Fix for test_table_default_values
Refs https://github.com/simonw/sqlite-utils/pull/764#issuecomment-4889359434
This commit is contained in:
parent
5aa61c2f7f
commit
ddd5373735
1 changed files with 1 additions and 1 deletions
|
|
@ -710,7 +710,7 @@ class Database:
|
|||
if str(value).upper() in ("CURRENT_TIME", "CURRENT_DATE", "CURRENT_TIMESTAMP"):
|
||||
return value
|
||||
|
||||
if str(value).upper() in ("TRUE", "FALSE", "NULL"):
|
||||
if isinstance(value, str) and value.upper() in ("TRUE", "FALSE", "NULL"):
|
||||
# Keyword literals must stay unquoted; quoting them would turn the
|
||||
# default into a string ('TRUE' instead of 1, 'NULL' instead of null).
|
||||
return value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue