mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-24 19:44:21 +01:00
12 lines
309 B
Tcl
Executable File
12 lines
309 B
Tcl
Executable File
#!/usr/bin/env tclsh
|
|
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
|
|
# ALTER TABLE _ RENAME TO _
|
|
do_execsql_test_on_specific_db {:memory:} alter-table-rename-table {
|
|
CREATE TABLE t1(x INTEGER PRIMARY KEY);
|
|
ALTER TABLE t1 RENAME TO t2;
|
|
SELECT tbl_name FROM sqlite_schema;
|
|
} { "t2" }
|