Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TicketRepository.freeFromReservation does not clear up special_price_id_fk column #12

Closed
syjer opened this issue Nov 13, 2014 · 1 comment
Labels

Comments

@syjer
Copy link
Member

syjer commented Nov 13, 2014

TicketRepository.freeFromReservation does not clear up special_price_id_fk column.

This is an issue as we cannot reuse a code

See current query

@Query("update ticket set status = 'FREE', tickets_reservation_id = null where status = 'PENDING' "
+ " and tickets_reservation_id in (:reservationIds)")
int freeFromReservation(@Bind("reservationIds") List<String> reservationIds);

Edit: actually I'm not sure that it's the only place that we need to change/check.

What we are seeing is this error (how we were able to create is an open issue)

Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violate
unique constraint "unique_special_price"
@syjer syjer added the bug label Nov 13, 2014
@syjer
Copy link
Member Author

syjer commented Nov 14, 2014

fixed

@syjer syjer closed this as completed Nov 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant