3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #*************************************************************************
13 set testdir [file dirname $argv0]
14 source $testdir/tester.tcl
15 source $testdir/fts3_common.tcl
16 set ::testprefix fts4rename
18 # If SQLITE_ENABLE_FTS3 is defined, omit this file.
25 CREATE VIRTUAL TABLE temp.t1 USING fts3(a);
30 do_catchsql_test 1.1 {
31 ALTER TABLE t1_content RENAME c0a TO docid;
32 } {1 {duplicate column name: docid}}
34 do_catchsql_test 1.2 {
35 UPDATE t1 SET Col0 = 1 ;
36 } {1 {no such column: Col0}}
38 do_catchsql_test 1.3 {