fix: map BOOLEAN/BOOL column types to int affinity in column_affinity()

This commit is contained in:
KooshaPari 2026-09-12 23:16:49 -07:00
commit 26ca4cef71
2 changed files with 21 additions and 0 deletions

View file

@ -182,6 +182,8 @@ def column_affinity(column_type: str) -> type:
return bytes
if "REAL" in column_type or "FLOA" in column_type or "DOUB" in column_type:
return float
if "BOOL" in column_type:
return int
if column_type == "ANY":
return ANY
# Default is 'NUMERIC', which we currently also treat as float