fix: revert pg incompatible change

This commit is contained in:
Ankush Menat 2023-08-04 14:06:03 +05:30
parent c4230f8760
commit fd15ab5329

View file

@ -186,8 +186,7 @@ def is_autoincremented(doctype: str, meta: Optional["Meta"] = None) -> bool:
if site_map.get(doctype) is None:
site_map[doctype] = (
frappe.db.sql(
f"""select data_type FROM information_schema.columns where column_name = 'name' and table_name = 'tab{doctype}' and table_schema = %s""",
frappe.db.db_name
f"""select data_type FROM information_schema.columns where column_name = 'name' and table_name = 'tab{doctype}'""",
)[0][0]
== "bigint"
)