mirror of
https://github.com/luapower/mysql.git
synced 2025-04-19 10:50:33 +02: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
|
end
|
||||||
|
|
||||||
stmt.insert_id = C.mysql_stmt_insert_id
|
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)
|
function stmt.errno(stmt)
|
||||||
local err = C.mysql_stmt_errno(stmt)
|
local err = C.mysql_stmt_errno(stmt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user