Skip to content

Commit

Permalink
#333 fix query for mysql/pgsql
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Sep 21, 2017
1 parent 61ae3f7 commit 1d1c513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/alfio/repository/AuditingRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ default int insert(String reservationId, Integer userId, Integer eventId, Audit.


@Query("insert into auditing(reservation_id, user_id, event_id, event_type, event_time, entity_type, entity_id, modifications) " +
" select tickets_reservation_id, null, event_id, 'UPDATE_TICKET_CATEGORY', sysdate, 'TICKET', concat('', id), null from ticket where category_id = :ticketCategoryId and tickets_reservation_id is not null")
" select tickets_reservation_id, null, event_id, 'UPDATE_TICKET_CATEGORY', current_timestamp, 'TICKET', concat('', id), null from ticket where category_id = :ticketCategoryId and tickets_reservation_id is not null")
int insertUpdateTicketInCategoryId(@Bind("ticketCategoryId") int id);
}

0 comments on commit 1d1c513

Please sign in to comment.