refactor: better variable naming

This commit is contained in:
AarDG10 2026-01-22 10:50:20 +05:30
parent 4301d9dff2
commit 5c31a7d020

View file

@ -1622,8 +1622,8 @@ class Engine:
& (columns.table_schema == current_schema)
)
).run(pluck=True)
db_type = res[0] if res else None
if db_type in ("smallint", "bigint", "int", "numeric"): # can add as needed
data_type = res[0] if res else None
if data_type in ("smallint", "bigint", "int", "numeric"): # can add as needed
return "0"
return "''"