mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Handle renaming a column or table when the schema contains a (meaningless) index on the constant expression ('text' IN ()) or ('text' NOT IN()).
FossilOrigin-Name: 567b13093956185b5d5e971b81ba4788fd9d26c03688f643b380f0f1c1a94da0
This commit is contained in:
@@ -175,6 +175,21 @@ do_catchsql_test 7.2.2 {
|
||||
ALTER TABLE t1x RENAME TO t1;
|
||||
} {1 {error in trigger AFTER: no such column: d}}
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
reset_db
|
||||
do_execsql_test 8.0 {
|
||||
CREATE TABLE t0(c0);
|
||||
CREATE INDEX i0 ON t0('1' IN ());
|
||||
}
|
||||
do_execsql_test 8.1 {
|
||||
ALTER TABLE t0 RENAME TO t1;
|
||||
SELECT sql FROM sqlite_master;
|
||||
} {
|
||||
{CREATE TABLE "t1"(c0)}
|
||||
{CREATE INDEX i0 ON "t1"('1' IN ())}
|
||||
}
|
||||
|
||||
|
||||
finish_test
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user