private void ClearParameters() { if (Sqlite3.sqlite3_clear_bindings(this.st) != Sqlite3.SQLITE_OK) { throw PythonSQLite.GetSqliteError(this.db, null); } }
public Statement(PythonSQLite.Connection connection, string operation) { this.uniqueid = Guid.NewGuid(); this.db = connection.db; this.sql = operation; this.st = null; string tail = null; if (Sqlite3.sqlite3_prepare(this.db, this.sql, -1, ref this.st, ref tail) != Sqlite3.SQLITE_OK /*TODO: || too much sql */) { Sqlite3.sqlite3_finalize(st); this.st = null; throw PythonSQLite.GetSqliteError(this.db, null); } this.Tail = tail; }