mirror of https://github.com/luapower/mysql.git
unimportant
This commit is contained in:
parent
3cf80fe450
commit
323299b34c
|
@ -475,7 +475,7 @@ local to_lua = {
|
||||||
decimal = tonumber,
|
decimal = tonumber,
|
||||||
}
|
}
|
||||||
function mysql.to_lua(v, col)
|
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
|
if to_lua then
|
||||||
v = to_lua(v)
|
v = to_lua(v)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue