OLD | NEW |
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 Loading... |
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 |
OLD | NEW |