Files
email-tracker/external/duckdb/test/fuzzer/pedro/temp_table_cleanup.test
2025-10-24 19:21:19 -05:00

23 lines
372 B
SQL

# name: test/fuzzer/pedro/temp_table_cleanup.test
# description: Use-after-free on temporary table after transaction has stopped running
# group: [pedro]
statement ok
PRAGMA enable_verification
concurrentloop i 0 10
statement ok
CREATE TEMP TABLE t2 AS (SELECT 1);
statement ok
INSERT INTO t2 VALUES (42);
statement ok
DELETE FROM t2
endloop
statement ok
SELECT 42