summaryrefslogtreecommitdiff
path: root/tests/timestamp.ur
blob: 56f030edf957d38bdf0cf5a3a3ac8953e7c6fddb (plain)
1
2
3
4
5
6
7
8
9
10
11
table t : { A : time }

fun many ls =
    case ls of
        [] => (WHERE TRUE)
      | tm :: ls' => (WHERE t.A = {[tm]} AND {many ls'})

task initialize = fn () =>
                     tm <- now;
                     dml (DELETE FROM t WHERE {many (tm :: [])})