dbd/sqlite3/statement.c

changeset 5
e66b88e013ca
parent 4
c50b0e6f25d6
child 9
06eb2850703f
--- 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);

mercurial