]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
test(postgresql): add schema resolution tests for ENUM/DOMAIN with builtin names
authorKapilDagur <kapildagur1306@gmail.com>
Fri, 12 Sep 2025 19:17:51 +0000 (00:47 +0530)
committerKapilDagur <kapildagur1306@gmail.com>
Fri, 12 Sep 2025 19:17:51 +0000 (00:47 +0530)
commitc4b68ebfa6e5c80b679306612b63c22cd9f13a1d
treed22c33c50993481fca10264a0638cd50bdedd866
parent1131e0fe65dde56cdc1c56ba1f549c8c5054d3ed
test(postgresql): add schema resolution tests for ENUM/DOMAIN with builtin names

Add comprehensive unit tests to verify schema resolution for ENUM and
DOMAIN types when their names conflict with PostgreSQL built-in types.

Covers scenarios:
* raises CompileError when no schema/default is provided
* works with explicit schema specified
* inherits schema from table definition
* inherits schema from metadata

Tests are parameterized via @testing.variation and applied to both ENUM
and DOMAIN. Also includes compiler tests for naming conflicts to ensure
consistent error handling and valid SQL generation.

Closes: #12761
test/dialect/postgresql/test_compiler.py
test/dialect/postgresql/test_types.py