summaryrefslogtreecommitdiff
path: root/ext/librethinkdbxx/test/upstream/regression/4582.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ext/librethinkdbxx/test/upstream/regression/4582.yaml')
-rw-r--r--ext/librethinkdbxx/test/upstream/regression/4582.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/librethinkdbxx/test/upstream/regression/4582.yaml b/ext/librethinkdbxx/test/upstream/regression/4582.yaml
new file mode 100644
index 00000000..2a899720
--- /dev/null
+++ b/ext/librethinkdbxx/test/upstream/regression/4582.yaml
@@ -0,0 +1,9 @@
+desc: 4582 -- non-deterministic arguments to `replace` and `update`.
+table_variable_name: tbl
+tests:
+ - cd: tbl.get(0).replace(tbl.get(0))
+ ot: err('ReqlQueryLogicError','Could not prove argument deterministic. Maybe you want to use the non_atomic flag?')
+ - cd: tbl.get(0).update(tbl.get(0))
+ ot: err('ReqlQueryLogicError','Could not prove argument deterministic. Maybe you want to use the non_atomic flag?')
+ - cd: tbl.replace(r.args([tbl.get(0)]))
+ ot: err('ReqlQueryLogicError','Could not prove argument deterministic. Maybe you want to use the non_atomic flag?') \ No newline at end of file