| OLD | NEW |
| 1 # 2006 June 10 | 1 # 2006 June 10 |
| 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 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 xSync \ | 1147 xSync \ |
| 1148 ] { | 1148 ] { |
| 1149 do_test vtab1-16.$tn { | 1149 do_test vtab1-16.$tn { |
| 1150 set echo_module_fail($method,t2) "the $method method has failed" | 1150 set echo_module_fail($method,t2) "the $method method has failed" |
| 1151 catchsql { INSERT INTO echo_t2 VALUES(7, 8, 9) } | 1151 catchsql { INSERT INTO echo_t2 VALUES(7, 8, 9) } |
| 1152 } "1 {echo-vtab-error: the $method method has failed}" | 1152 } "1 {echo-vtab-error: the $method method has failed}" |
| 1153 unset echo_module_fail($method,t2) | 1153 unset echo_module_fail($method,t2) |
| 1154 incr tn | 1154 incr tn |
| 1155 } | 1155 } |
| 1156 | 1156 |
| 1157 do_test vtab1-16.$tn { | 1157 ifcapable altertable { |
| 1158 set echo_module_fail(xRename,t2) "the xRename method has failed" | 1158 do_test vtab1-16.$tn { |
| 1159 catchsql { ALTER TABLE echo_t2 RENAME TO another_name } | 1159 set echo_module_fail(xRename,t2) "the xRename method has failed" |
| 1160 } "1 {echo-vtab-error: the xRename method has failed}" | 1160 catchsql { ALTER TABLE echo_t2 RENAME TO another_name } |
| 1161 unset echo_module_fail(xRename,t2) | 1161 } "1 {echo-vtab-error: the xRename method has failed}" |
| 1162 incr tn | 1162 unset echo_module_fail(xRename,t2) |
| 1163 incr tn |
| 1164 } |
| 1163 | 1165 |
| 1164 unset -nocomplain echo_module_begin_fail | 1166 unset -nocomplain echo_module_begin_fail |
| 1165 finish_test | 1167 finish_test |
| OLD | NEW |