--- a/dbd/sqlite3/statement.c Wed Nov 26 10:43:45 2008 +0000 +++ b/dbd/sqlite3/statement.c Wed Nov 26 10:46:42 2008 +0000 @@ -119,6 +119,7 @@ if (!step(statement)) { lua_pushboolean(L, 0); lua_pushfstring(L, DBI_ERR_EXECUTE_FAILED, sqlite3_errmsg(statement->sqlite)); + return 2; } lua_pushboolean(L, 1);