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