Files
email-tracker/external/duckdb/test/issues/general/test_5664.test
2025-10-24 19:21:19 -05:00

30 lines
541 B
SQL

# name: test/issues/general/test_5664.test
# description: Issue 5664: Create type from non-existing type causes INTERNAL Error
# group: [general]
statement ok
PRAGMA enable_verification
# create a type with a non-existant type as source
statement error
CREATE TYPE alias as BLOBL;
----
<REGEX>:Catalog Error.*Type.*does not exist.*
statement ok
CREATE TYPE a as BLOB;
statement ok
CREATE TYPE b as a;
statement ok
CREATE TABLE test (x b);
statement ok
INSERT INTO test VALUES ('duckdb');
query I
SELECT typeof(x) FROM test;
----
BLOB