You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates connector-test-kit assertions to match the intentional pg
driver-adapter P2002 error target change from field names to database
constraint names.
## Changes
- **Unique constraint expectations**: Centralizes provider-specific
target formatting in the by-OID tests. The pg adapter for PostgreSQL and
CockroachDB now asserts model-specific `Parent_pkey` or `Child_pkey`
constraints, while Neon and providers that still expose field metadata
keep their existing expectations.
- **Test support**: Adds `ConnectorVersion::is_pg_driver_adapter()` so
tests can distinguish the pg adapter without exposing private
connector-version enums.
## Why
The pg driver adapter now intentionally preserves the database
constraint name for unique violations, while Neon still reports
constrained fields. The tests need to distinguish those adapters rather
than applying one PostgreSQL-wide expectation.
## Validation
- `cargo fmt --all -- --check`
- `git diff --check`
- Editor diagnostics for the changed test module
- Local Cargo checks remain blocked because `openssl-sys` cannot find
OpenSSL development headers or `openssl.pc`; CI provides the compile
validation.
---------
Signed-off-by: Alexey Orlenko's AI Agent <robot@aqrln.net>
0 commit comments