You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 13, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: event-buffer/event-buffer-core/src/main/java/uk/gov/justice/services/event/buffer/core/repository/streamstatus/StreamStatusJdbcRepository.java
+32-2Lines changed: 32 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,11 +31,12 @@ public class StreamStatusJdbcRepository {
31
31
/**
32
32
* Statements
33
33
*/
34
-
privatestaticfinalStringSELECT_BY_STREAM_ID_AND_SOURCE = "SELECT stream_id, version, source FROM stream_status WHERE stream_id=? AND source=? FOR UPDATE";
34
+
privatestaticfinalStringSELECT_BY_STREAM_ID_AND_SOURCE = "SELECT stream_id, version, source FROM stream_status WHERE stream_id=? AND source in (?,'unknown') FOR UPDATE";
35
+
privatestaticfinalStringCOUNT_BY_STREAM_ID = "SELECT count(*) FROM stream_status WHERE stream_id=?";
Copy file name to clipboardExpand all lines: event-buffer/event-buffer-core/src/main/java/uk/gov/justice/services/event/buffer/core/service/PostgreSQLBasedBufferInitialisationStrategy.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ public PostgreSQLBasedBufferInitialisationStrategy(final StreamStatusJdbcReposit
Copy file name to clipboardExpand all lines: event-buffer/event-buffer-core/src/test/java/uk/gov/justice/services/event/buffer/core/repository/streamstatus/StreamStatusJdbcRepositoryIT.java
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ public class StreamStatusJdbcRepositoryIT {
0 commit comments