Lines Matching full:statement
11 #include "sql/statement.h"
24 sql::Statement s(db->GetUniqueStatement(kMasterCount));
52 void IgnoreErrorCallback(int error, sql::Statement* stmt) {
58 int error, sql::Statement* stmt) {
68 int error, sql::Statement* stmt) {
106 void RazeErrorCallback(int expected_error, int error, sql::Statement* stmt) {
118 // Valid statement should return true.
122 // Invalid statement should fail.
144 // Create a new cached statement.
146 sql::Statement s(db().GetCachedStatement(id1, "SELECT a FROM foo"));
153 // The statement should be cached still.
157 // Get the same statement using different SQL. This should ignore our
159 sql::Statement s(db().GetCachedStatement(id1, "something invalid("));
203 sql::Statement s(db().GetUniqueStatement("SELECT value FROM foo WHERE id=?"));
292 sql::Statement s(db().GetUniqueStatement("PRAGMA auto_vacuum"));
302 sql::Statement s(db().GetUniqueStatement("PRAGMA page_count"));
308 sql::Statement s(db().GetUniqueStatement("SELECT * FROM sqlite_master"));
321 sql::Statement s(db().GetUniqueStatement("PRAGMA page_count"));
329 sql::Statement s(db().GetUniqueStatement("PRAGMA auto_vacuum"));
339 // Scoped to release statement before Close().
342 sql::Statement s(db().GetUniqueStatement("PRAGMA page_size"));
355 sql::Statement s(db().GetUniqueStatement("PRAGMA page_size"));
409 sql::Statement s(other_db.GetUniqueStatement(kQuery));
413 // Complete the statement unlocks the database.
584 sql::Statement s(db().GetUniqueStatement(kSimpleSql));
588 sql::Statement s(db().GetCachedStatement(SQL_FROM_HERE, kSimpleSql));
606 sql::Statement s(db().GetUniqueStatement(kSimpleSql));
610 sql::Statement s(db().GetCachedStatement(SQL_FROM_HERE, kSimpleSql));
740 sql::Statement s(db().GetUniqueStatement("SELECT COUNT(*) FROM x"));
745 // Get a statement which is valid before and will exist across Poison().
746 sql::Statement valid_statement(
758 sql::Statement s(db().GetUniqueStatement("SELECT COUNT(*) FROM x"));
763 // The existing statement has become invalid.
803 sql::Statement s(db().GetUniqueStatement("SELECT COUNT(*) FROM foo"));