summaryrefslogtreecommitdiff
path: root/ext/librethinkdbxx/test/upstream/regression/5092.js.yaml
blob: 240712783fd42a4c867ab81f33e88e62d8cd7e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
desc: 5092 -- r.uuid with a string argument is deterministic
table_variable_name: tbl
tests:
  - js: tbl.get(0).update({a:r.uuid()})
    ot: err('ReqlQueryLogicError','Could not prove argument deterministic.  Maybe you want to use the non_atomic flag?')
  - js: tbl.get(0).update({a:r.uuid(r.args([]))})
    ot: err('ReqlQueryLogicError','Could not prove argument deterministic.  Maybe you want to use the non_atomic flag?')
  # We are more cautious than necessary when it comes to `r.args`:
  - js: tbl.get(0).update({a:r.uuid(r.args(["test"]))})
    ot: err('ReqlQueryLogicError','Could not prove argument deterministic.  Maybe you want to use the non_atomic flag?')
  - js: tbl.get(0).update({a:r.uuid("test")})
    ot: partial({skipped:1})
  - js: tbl.get(0).update({a:r.uuid(r.uuid())})
    ot: err('ReqlQueryLogicError','Could not prove argument deterministic.  Maybe you want to use the non_atomic flag?')