Browse Source

[hotfix] prevent multiple sql queries

version-14
Anand Doshi 10 years ago
parent
commit
6d16ba450f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/database.py

+ 1
- 1
frappe/database.py View File

@@ -224,7 +224,7 @@ class Database:


if len(query_lower) > 1: if len(query_lower) > 1:
for q in 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", "update",
"truncate", "truncate",
"alter", "alter",


Loading…
Cancel
Save