dbd/sqlite3/statement.c

changeset 33
6c64c45e7d8f
parent 32
03ed0ca09837
child 41
e490414a391d
equal deleted inserted replaced
32:03ed0ca09837 33:6c64c45e7d8f
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));

mercurial