mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-04 14:38:50 +00:00
fix(lib/lua): show stacktrace when safeArgs throws error
This commit is contained in:
1 parent
86aaf157fa
commit
840d39493e
1 file changed
+2
-1
+2
-1
@@ -78,7 +78,8 @@ for _, method in pairs({
|
|||||||
MySQL[method] = setmetatable({
|
MySQL[method] = setmetatable({
|
||||||
method = method,
|
method = method,
|
||||||
await = function(query, parameters)
|
await = function(query, parameters)
|
||||||
return await(oxmysql[method], safeArgs(query, parameters, nil, method == 'transaction'))
|
query, parameters = safeArgs(query, parameters, nil, method == 'transaction')
|
||||||
|
return await(oxmysql[method], query, parameters)
|
||||||
end
|
end
|
||||||
}, mysql_method_mt)
|
}, mysql_method_mt)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user