Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix UniqueConstraintViolation for composite primary keys on sqlite #758

merged 1 commit into from Jan 22, 2014


None yet
2 participants

timcraft commented Jan 22, 2014

A unique constraint violation on a table with a composite primary key will currently raise Sequel::DatabaseError: SQLite3::ConstraintException instead of Sequel::UniqueConstraintViolation. The error message is slightly different (because english), so doesn't match the current regexp. Easy fix. Not sure if the guards are correct in the spec, I just copied/pasted from the one above, so please can you double check that.


jeremyevans commented Jan 22, 2014

Thanks for the patch. This looks good, I'll try merging it later today.

@jeremyevans jeremyevans merged commit fc23f12 into jeremyevans:master Jan 22, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment