mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-11 05:31:09 +00:00
16 lines
717 B
YAML
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.", [])
|