1
0
mirror of https://github.com/luapower/mysql.git synced 2024-12-28 03:40:30 +01:00

field_count() and param_count() returns Lua number on x64

This commit is contained in:
Cosmin Apreutesei 2014-09-17 22:53:32 +03:00
parent 4e79c0bd3b
commit ad48fb2123

View File

@ -768,8 +768,14 @@ function stmt.affected_rows(stmt)
end
stmt.insert_id = C.mysql_stmt_insert_id
stmt.field_count = C.mysql_stmt_field_count
stmt.param_count = C.mysql_stmt_param_count
function stmt.field_count(stmt)
return tonumber(C.mysql_stmt_field_count(stmt))
end
function stmt.param_count(stmt)
return tonumber(C.mysql_stmt_param_count(stmt))
end
function stmt.errno(stmt)
local err = C.mysql_stmt_errno(stmt)