Skip to content

Commit

Permalink
add extra test for renaming the table that a view references
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishj committed Oct 20, 2023
1 parent 953a28a commit 714fba8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/sql/catalog/view/test_view_schema_change.test
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,12 @@ query I
SELECT * FROM v1
----

# Changing the types of the table that the view references also makes the view unusable

statement ok
ALTER TABLE t1 ALTER i TYPE VARCHAR;

statement error
select * from v1;
----
Binder Error: Contents of view were altered: types don't match!

0 comments on commit 714fba8

Please sign in to comment.