Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: third_party/sqlite/src/test/capi3d.test

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/test/capi3c.test ('k') | third_party/sqlite/src/test/cffault.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2008 June 18 1 # 2008 June 18
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #*********************************************************************** 10 #***********************************************************************
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 # Test the sqlite3_stmt_busy() function with ROLLBACK statements. 148 # Test the sqlite3_stmt_busy() function with ROLLBACK statements.
149 # 149 #
150 reset_db 150 reset_db
151 151
152 do_execsql_test capi3d-4.1 { 152 do_execsql_test capi3d-4.1 {
153 CREATE TABLE t4(x,y); 153 CREATE TABLE t4(x,y);
154 BEGIN; 154 BEGIN;
155 } 155 }
156 156
157 do_test capi3d-4.2.1 { 157 do_test capi3d-4.2.1 {
158 breakpoint
159 set ::s1 [sqlite3_prepare_v2 db "ROLLBACK" -1 notused] 158 set ::s1 [sqlite3_prepare_v2 db "ROLLBACK" -1 notused]
160 sqlite3_step $::s1 159 sqlite3_step $::s1
161 } {SQLITE_DONE} 160 } {SQLITE_DONE}
162 161
163 do_test capi3d-4.2.2 { 162 do_test capi3d-4.2.2 {
164 sqlite3_stmt_busy $::s1 163 sqlite3_stmt_busy $::s1
165 } {1} 164 } {0}
166 165
167 do_catchsql_test capi3d-4.2.3 { 166 do_catchsql_test capi3d-4.2.3 {
168 VACUUM 167 VACUUM
169 } {1 {cannot VACUUM - SQL statements in progress}} 168 } {0 {}}
170 169
171 do_test capi3d-4.2.4 { 170 do_test capi3d-4.2.4 {
172 sqlite3_reset $::s1 171 sqlite3_reset $::s1
173 } {SQLITE_OK} 172 } {SQLITE_OK}
174 173
175 do_catchsql_test capi3d-4.2.5 { 174 do_catchsql_test capi3d-4.2.5 {
176 VACUUM 175 VACUUM
177 } {0 {}} 176 } {0 {}}
178 177
179 do_test capi3d-4.2.6 { 178 do_test capi3d-4.2.6 {
180 sqlite3_finalize $::s1 179 sqlite3_finalize $::s1
181 } {SQLITE_OK} 180 } {SQLITE_OK}
182 181
183 182
184 finish_test 183 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/capi3c.test ('k') | third_party/sqlite/src/test/cffault.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698