fix: Add rollback to safe_exec
This commit is contained in:
parent
34882227fb
commit
4f74f9e4e1
1 changed files with 2 additions and 1 deletions
|
|
@ -155,7 +155,8 @@ def get_safe_globals():
|
|||
sum = frappe.db.sum,
|
||||
escape = frappe.db.escape,
|
||||
sql = read_sql,
|
||||
commit = frappe.db.commit
|
||||
commit = frappe.db.commit,
|
||||
rollback = frappe.db.rollback
|
||||
)
|
||||
|
||||
out.frappe.cache = cache
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue