mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 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({
|
||||
method = method,
|
||||
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
|
||||
}, mysql_method_mt)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user