1
0
mirror of https://github.com/luapower/mysql.git synced 2024-12-29 12:20:32 +01:00

unimportant

This commit is contained in:
Cosmin Apreutesei 2021-10-22 05:05:45 +03:00
parent 3cf80fe450
commit 323299b34c

View File

@ -475,7 +475,7 @@ local to_lua = {
decimal = tonumber,
}
function mysql.to_lua(v, col)
local to_lua = to_lua[col.type]
local to_lua = col.to_lua or to_lua[col.type]
if to_lua then
v = to_lua(v)
end