fix(lib): Pass transaction to safeArgs

This commit is contained in:
Dunak authored and GitHub committed 2021-12-23 22:37:50 +01:00
1 parent e86bf26221
commit a047e21f51
1 file changed
+1 -1
+1 -1
View File
@@ -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))