121 return 2; |
121 return 2; |
122 } |
122 } |
123 |
123 |
124 /* |
124 /* |
125 * reset the handle before binding params |
125 * reset the handle before binding params |
126 * this wil be a NOP if the handle has not |
126 * this will be a NOP if the handle has not |
127 * been executed |
127 * been executed |
128 */ |
128 */ |
129 if (sqlite3_reset(statement->stmt) != SQLITE_OK) { |
129 if (sqlite3_reset(statement->stmt) != SQLITE_OK) { |
130 lua_pushboolean(L, 0); |
130 lua_pushboolean(L, 0); |
131 lua_pushfstring(L, DBI_ERR_EXECUTE_FAILED, sqlite3_errmsg(statement->sqlite)); |
131 lua_pushfstring(L, DBI_ERR_EXECUTE_FAILED, sqlite3_errmsg(statement->sqlite)); |