mirror of
https://github.com/luapower/mysql.git
synced 2024-12-28 20:00:33 +01:00
field_count() and param_count() returns Lua number on x64
This commit is contained in:
parent
4e79c0bd3b
commit
ad48fb2123
10
mysql.lua
10
mysql.lua
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user