mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 22:20:56 +00:00
fix(lib): safeArgs requires transaction for await
This commit is contained in:
1 parent
03b94c749f
commit
a12e6d8a94
1 file changed
+1
-1
+1
-1
@@ -76,7 +76,7 @@ setmetatable(MySQL, {
|
|||||||
__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))
|
||||||
self[method].await = function(query, parameters)
|
self[method].await = function(query, parameters)
|
||||||
return Await(oxmysql[method], safeArgs(query, parameters))
|
return Await(oxmysql[method], safeArgs(query, parameters, nil, method == 'transaction'))
|
||||||
end
|
end
|
||||||
return self[method].await
|
return self[method].await
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user