fix(eventstore): set previous sequence NULL if not checked

This commit is contained in:
adlerhurst 2020-10-15 16:51:00 +02:00
parent 62f0d9d59d
commit 55e5e82dbc

View File

@ -79,10 +79,8 @@ const (
" SELECT " +
" CASE " +
" WHEN NOT check_previous " +
" THEN max_event_seq " +
" WHEN previous_sequence > 0" +
" THEN previous_sequence " +
" ELSE previous_sequence " +
" THEN NULL " +
" ELSE previous_sequence " +
" END" +
" ) " +
" FROM input_event " +