Fixed a bug with preparation of statements w/o bound parameters.

This commit is contained in:
Alexey Kopytov
2009-02-26 10:35:44 +00:00
parent 946f88aa91
commit 4c2e5fdcb2

View File

@ -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;
}