From 6d16ba450fa40e4c84d48c94a68aef5a31c51205 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 12 May 2015 13:04:25 -0700 Subject: [PATCH] [hotfix] prevent multiple sql queries --- frappe/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/database.py b/frappe/database.py index 845829299d..cef3548ee3 100644 --- a/frappe/database.py +++ b/frappe/database.py @@ -224,7 +224,7 @@ class Database: if len(query_lower) > 1: for q in query_lower[1:]: - if q.strip().split()[0] in ( + if q.strip() and q.strip().split()[0] in ( "update", "truncate", "alter",