diff --git a/frappe/database/database.py b/frappe/database/database.py index 70345a04dd..7551c5f628 100644 --- a/frappe/database/database.py +++ b/frappe/database/database.py @@ -115,6 +115,7 @@ class Database(object): {"name": "a%", "owner":"test@example.com"}) """ + debug = debug or getattr(self, "debug", False) query = str(query) if not run: return query