Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ACF
acf-freeswitch-vmail
Commits
a1c6854f
Commit
a1c6854f
authored
Nov 18, 2013
by
Ted Trask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change sql to use BEGIN rather than START
parent
eebbecf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vmail-model.lua
vmail-model.lua
+1
-1
No files found.
vmail-model.lua
View file @
a1c6854f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment