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,39 @@
# name: test/fuzzer/pedro/alter_column_generated.test
# description: Issue #4677: heap-buffer-overflow on ALTER statement
# group: [pedro]
statement ok
PRAGMA enable_verification
statement ok
CREATE TABLE t0(c0 AS (1), c1 INT);
statement ok
ALTER TABLE t0 ALTER c1 SET NOT NULL;
statement ok
ALTER TABLE t0 ALTER c1 SET NOT NULL;
statement error
ALTER TABLE t0 ALTER c0 SET NOT NULL;
----
<REGEX>:Binder Error.*Unsupported constraint.*
statement error
INSERT INTO t0 VALUES (NULL);
----
<REGEX>:Constraint Error.*NOT NULL.*failed.*
statement ok
DROP TABLE t0;
statement ok
CREATE TABLE t0(c0 AS (1), c1 INT);
statement ok
INSERT INTO t0 VALUES (NULL);
statement error
ALTER TABLE t0 ALTER c1 SET NOT NULL;
----
<REGEX>:Constraint Error.*NOT NULL.*failed.*