Commit a1c6854f authored by Ted Trask's avatar Ted Trask
Browse files

Change sql to use BEGIN rather than START

parent eebbecf9
......@@ -203,7 +203,7 @@ local setuserparams = function(userparams)
if #uid == 1 then
-- There are a few params not to put in the voicemail_values table
local ignoreparam = { username=true, ["vm-password"]=true, ["vm-password-confirm"]=true }
vmaildb.runsqlcommand("START TRANSACTION")
vmaildb.runsqlcommand("BEGIN TRANSACTION")
sql = "DELETE FROM voicemail_values"..generatewhereclause(nil, nil, nil, uid[1].uid).." AND nid IN (SELECT nid FROM voicemail_params)"
vmaildb.runsqlcommand(sql, true)
for i,parm in ipairs(params) do
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment