You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns 1 if the value at the given index is a string or a number (which is always convertible to a string), and 0 otherwise.
The fix: Ask for lua_isinteger and lua_isnumber first. In my timezone, it's evening and I feel admittedly too lazy to go the official way of forking, branching and submitting an official pull request for such a small thing.
Also: I love your bindings (I have looked previously and was reluctant to use sqlite because the others are ugly).
The text was updated successfully, but these errors were encountered:
Code like
inserts the string
"42"
instead of the number42
(at least with Lua 5.3). The reason is the following snippet ofbind_one_param
:The reference manual for Lua 5.3 states:
The fix: Ask for
lua_isinteger
andlua_isnumber
first. In my timezone, it's evening and I feel admittedly too lazy to go the official way of forking, branching and submitting an official pull request for such a small thing.Also: I love your bindings (I have looked previously and was reluctant to use sqlite because the others are ugly).
The text was updated successfully, but these errors were encountered: