Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
workflowtest shadowed added
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfliegner committed Mar 13, 2022
1 parent dd07d4f commit dbb74de
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions workflowtest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,24 @@ println(tr3b)
@test isempty(find(TestDummyComponent, SQLWhereExpression("id=?", t1.id)))
@test isempty(find(Version, SQLWhereExpression("id=?", currentVersion.id)))
@test isempty(find(ValidityInterval, SQLWhereExpression("id=?", currentInterval.id)))


root = find(
ValidityInterval,
SQLWhereExpression("ref_history=? AND tsrdb @> now()", w1.ref_history),
)[1]

shadowed = find(
ValidityInterval,
SQLWhereExpression(
"ref_history=? AND tsdb_invalidfrom=? AND tstzrange(?,?) * tsrworld = tsrworld",
root.ref_history,
root.tsdb_validfrom,
root.tsworld_validfrom,
root.tsworld_invalidfrom,
)
)

@test ! isempty(shadowed)

end

0 comments on commit dbb74de

Please sign in to comment.