dbd/sqlite3/statement.c

changeset 5
e66b88e013ca
parent 4
c50b0e6f25d6
child 9
06eb2850703f
equal deleted inserted replaced
4:c50b0e6f25d6 5:e66b88e013ca
117 } 117 }
118 118
119 if (!step(statement)) { 119 if (!step(statement)) {
120 lua_pushboolean(L, 0); 120 lua_pushboolean(L, 0);
121 lua_pushfstring(L, DBI_ERR_EXECUTE_FAILED, sqlite3_errmsg(statement->sqlite)); 121 lua_pushfstring(L, DBI_ERR_EXECUTE_FAILED, sqlite3_errmsg(statement->sqlite));
122 return 2;
122 } 123 }
123 124
124 lua_pushboolean(L, 1); 125 lua_pushboolean(L, 1);
125 return 1; 126 return 1;
126 } 127 }

mercurial