From 5c31a7d020b16cc679d6989f028997bcf386ed25 Mon Sep 17 00:00:00 2001 From: AarDG10 Date: Thu, 22 Jan 2026 10:50:20 +0530 Subject: [PATCH] refactor: better variable naming --- frappe/database/query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/database/query.py b/frappe/database/query.py index 00303d3f67..417cb22f78 100644 --- a/frappe/database/query.py +++ b/frappe/database/query.py @@ -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 "''"