Skip to content

Commit

Permalink
Changed DuplicateCommit queries for #16
Browse files Browse the repository at this point in the history
We need to create unique id on BuckedId+StreamId+CommitId
Closes #16
  • Loading branch information
alkampfergit committed Apr 13, 2016
1 parent bf1600e commit bee8fa3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ AND NOT EXISTS
FROM Commits
WHERE BucketId = @BucketId
AND StreamId = @StreamId
AND CommitSequence = @CommitSequence
AND CommitId = @CommitId;</value>
</data>
<data name="GetCommitsFromInstant" xml:space="preserve">
Expand Down Expand Up @@ -224,7 +223,7 @@ FROM Commits
WHERE CheckpointNumber &gt; @CheckpointNumber
ORDER BY CheckpointNumber
LIMIT @Limit OFFSET @Skip;</value>
</data>
</data>
<data name="GetCommitsFromBucketAndCheckpoint" xml:space="preserve">
<value>SELECT BucketId, StreamId, StreamIdOriginal, StreamRevision, CommitId, CommitSequence, CommitStamp, CheckpointNumber, Headers, Payload
FROM Commits
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ SELECT CAST( COUNT(*) AS NUMBER(8,0) )
FROM Commits
WHERE (
BucketId = :BucketId AND StreamId = :StreamId
AND CommitSequence = :CommitSequence
AND CommitId = :CommitId
)</value>
</data>
Expand Down Expand Up @@ -185,7 +184,7 @@ FROM Commits
WHERE CheckpointNumber &gt; :CheckpointNumber
ORDER BY CheckpointNumber
WHERE ROWNUM &lt;= :Limit;</value>
</data>
</data>
<data name="GetCommitsFromBucketAndCheckpoint" xml:space="preserve">
<value>/*GetCommitsFromBucketAndCheckpoint*/
SELECT BucketId, StreamId, StreamIdOriginal, StreamRevision, CommitId, CommitSequence, CommitStamp, CheckpointNumber, Headers, Payload
Expand Down

0 comments on commit bee8fa3

Please sign in to comment.