limbo/testing/alter_table.test
Levy A. 023a116b0d feat: initial implementation of ALTER TABLE
only supporting renaming tables
2025-05-08 09:24:56 -03:00

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" }