Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sqlite_utils/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading