mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 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
|
||||
self[method] = setmetatable({}, {
|
||||
__call = function(_, query, parameters, cb)
|
||||
return oxmysql[method](nil, safeArgs(query, parameters, cb))
|
||||
return oxmysql[method](nil, safeArgs(query, parameters, cb, method == 'transaction'))
|
||||
end,
|
||||
__index = function(_, await)
|
||||
assert(await == 'await', ('unable to index MySQL.%s.%s, expected .await'):format(method, await))
|
||||
|
||||
Reference in new issue
Block a user