mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
11 lines
309 B
Tcl
Executable file
11 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" }
|