Skip to content

Wrap the duplicate primary keys of better-sqlite3 as unique violations - #484

Merged
lehni merged 1 commit into
nextfrom
fix/better-sqlite3-primary-key
Oct 15, 2026
Merged

lehni merged 1 commit into
nextfrom
fix/better-sqlite3-primary-key

Conversation

@lehni

@lehni lehni commented Oct 15, 2026

Copy link
Copy Markdown

better-sqlite3 reports a duplicate primary key with its own code, SQLITE_CONSTRAINT_PRIMARYKEY, so it was a plain ConstraintViolationError after #483, where sqlite3 gives a UniqueViolationError with the table and columns. It's now a UniqueViolationError on both drivers.

@lehni
lehni merged commit bb52509 into next Oct 15, 2026
5 checks passed
@lehni
lehni deleted the fix/better-sqlite3-primary-key branch October 16, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant