This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-zerotierone/ext/librethinkdbxx/test/upstream/regression/579.yaml
2017-11-02 07:05:11 -07:00

16 lines
717 B
YAML

desc: reject non-deterministic secondary indexes (#579)
table_variable_name: tbl
tests:
- cd: tbl.insert({'name':'Jim Brown'})
- js: tbl.index_create("579", function(rec){return r.js("1")})
py: tbl.index_create("579", lambda rec:r.js("1"))
rb: tbl.index_create("579") {|rec| r.js("1")}
ot: err("ReqlQueryLogicError", "Could not prove function deterministic. Index functions must be deterministic.", [])
- js: tbl.index_create("579", function(rec){return tbl.get(0)})
py: tbl.index_create("579", lambda rec:tbl.get(0))
rb: tbl.index_create("579") {|rec| tbl.get(0)}
ot: err("ReqlQueryLogicError", "Could not prove function deterministic. Index functions must be deterministic.", [])