mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 14:38:50 +00:00
fix(lib): Pass transaction to safeArgs
This commit is contained in:
1 parent
e86bf26221
commit
a047e21f51
1 file changed
+1
-1
+1
-1
@@ -70,7 +70,7 @@ setmetatable(MySQL, {
|
|||||||
if state == 'started' or state == 'starting' then
|
if state == 'started' or state == 'starting' then
|
||||||
self[method] = setmetatable({}, {
|
self[method] = setmetatable({}, {
|
||||||
__call = function(_, query, parameters, cb)
|
__call = function(_, query, parameters, cb)
|
||||||
return oxmysql[method](nil, safeArgs(query, parameters, cb))
|
return oxmysql[method](nil, safeArgs(query, parameters, cb, method == 'transaction'))
|
||||||
end,
|
end,
|
||||||
__index = function(_, await)
|
__index = function(_, await)
|
||||||
assert(await == 'await', ('unable to index MySQL.%s.%s, expected .await'):format(method, await))
|
assert(await == 'await', ('unable to index MySQL.%s.%s, expected .await'):format(method, await))
|
||||||
|
|||||||
Reference in new issue
Block a user