should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
# name: test/sql/generated_columns/virtual/drop.test
# description: Remove generated column
# group: [virtual]
statement ok
PRAGMA enable_verification
statement ok
CREATE TABLE unit (
price INTEGER,
amount_sold INTEGER,
total_profit AS (price * amount_sold)
);
statement ok
INSERT INTO unit VALUES (5,4)
# Delete the generated column
statement ok
ALTER TABLE unit DROP COLUMN total_profit;
# We can now no longer select it
statement error
SELECT total_profit FROM unit;
----
<REGEX>:.*Binder Error.*not found .*