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

Uniqueness constraints not checked on sum types #113

Closed
snoyberg opened this Issue Jan 18, 2013 · 0 comments

Comments

Projects
None yet
1 participant
Owner

snoyberg commented Jan 18, 2013

Create a table such as:

+Foo
   bar Int
   baz Int
   UniqueBar bar

Running the following code generates a constraint error in PostgreSQL:

insert $ FooBarSum 1
insertBy $ FooBarSum 1

@snoyberg snoyberg closed this Jul 19, 2015

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