add remove split language chart show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
3 rows affected
ERROR:  conflicting key value violates exclusion constraint "unconfirmed_must_not_match_confirmed"
DETAIL:  Key (email, (is_confirmed::integer))=(alpha@example.com, 0) conflicts with existing key (email, (is_confirmed::integer))=(alpha@example.com, 1).

ERROR:  duplicate key value violates unique constraint "address_may_only_be_confirmed_once"
DETAIL:  Key (email)=(alpha@example.com) already exists.

ERROR:  conflicting key value violates exclusion constraint "unconfirmed_must_not_match_confirmed"
DETAIL:  Key (email, (is_confirmed::integer))=(beta@example.com, 1) conflicts with existing key (email, (is_confirmed::integer))=(beta@example.com, 0).

1 rows affected
user_id email is_confirmed
1 alpha@example.com t
2 beta@example.com f
3 beta@example.com f
1 beta@example.com f