Skip to content

Commit

Permalink
try includeDeleted = false
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw committed Sep 5, 2022
1 parent f13e344 commit 066b643
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ trait OracleReadJournalDao extends ReadJournalDao {
val theTag = s"%$tag%"

val selectStatement =
if (readJournalConfig.includeDeleted)
sql"""
SELECT "#$ordering", "#$deleted", "#$persistenceId", "#$sequenceNumber", "#$message", "#$tags"
FROM (
SELECT * FROM #$theTableName
WHERE "#$tags" LIKE $theTag
AND "#$ordering" > $theOffset
AND "#$ordering" <= $maxOffset
ORDER BY "#$ordering"
)
WHERE rownum <= $max""".as[JournalRow]
else
sql"""
// if (readJournalConfig.includeDeleted)
// sql"""
// SELECT "#$ordering", "#$deleted", "#$persistenceId", "#$sequenceNumber", "#$message", "#$tags"
// FROM (
// SELECT * FROM #$theTableName
// WHERE "#$tags" LIKE $theTag
// AND "#$ordering" > $theOffset
// AND "#$ordering" <= $maxOffset
// ORDER BY "#$ordering"
// )
// WHERE rownum <= $max""".as[JournalRow]
// else
sql"""
SELECT "#$ordering", "#$deleted", "#$persistenceId", "#$sequenceNumber", "#$message", "#$tags"
FROM (
SELECT * FROM #$theTableName
Expand Down

0 comments on commit 066b643

Please sign in to comment.