Fixed a bug with preparation of statements w/o bound parameters.
This commit is contained in:
@ -674,6 +674,8 @@ int sb_lua_db_prepare(lua_State *L)
|
||||
if (stmt->ptr == NULL)
|
||||
luaL_error(L, "db_prepare() failed");
|
||||
|
||||
stmt->param_ref = LUA_REFNIL;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user