diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index e97b7d9cb..515e5e22f 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -5212,8 +5212,8 @@ def resolve_extracts( def _decode_default_value(value: str) -> object: if value.startswith("'") and value.endswith("'"): - # It's a string - return value[1:-1] + # It's a string; unescape doubled single quotes + return value[1:-1].replace("''", "'") if value.isdigit(): # It's an integer return int(value)