Version 9b #1

Merged
Lars merged 34 commits from develop into main 2026-03-19 08:04:02 +01:00
Showing only changes of commit 124df01983 - Show all commits

View File

@ -90,6 +90,10 @@ def convert_value(value: Any, column: str, table: str) -> Any:
if value is None: if value is None:
return None return None
# Empty string → NULL for DATE columns (PostgreSQL doesn't accept '' for DATE type)
if isinstance(value, str) and value.strip() == '' and column == 'date':
return None
# INTEGER → BOOLEAN conversion # INTEGER → BOOLEAN conversion
if table in BOOLEAN_COLUMNS and column in BOOLEAN_COLUMNS[table]: if table in BOOLEAN_COLUMNS and column in BOOLEAN_COLUMNS[table]:
return bool(value) return bool(value)