We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
validate-query
1 parent 4f4f4ae commit aa67e7aCopy full SHA for aa67e7a
2 files changed
src/datascript/parser.cljc
@@ -696,7 +696,7 @@
696
(raise "Query for unknown vars: " (mapv :symbol unknown)
697
{:error :parser/query, :vars unknown, :form form}))
698
(when-not (empty? shared)
699
- (raise ":in and :with should not use same variables: " (mapv :symbol shared)
+ (raise ":find and :with should not use same variables: " (mapv :symbol shared)
700
{:error :parser/query, :vars shared, :form form})))
701
702
(let [in-vars (collect-vars (:qin q))
test/datascript/test/parser_query.cljc
@@ -23,7 +23,7 @@
23
"Query for unknown vars: [?t]"
24
25
'[:find ?x ?e :with ?y ?e :where [?x ?e ?y]]
26
- ":in and :with should not use same variables: [?e]"
+ ":find and :with should not use same variables: [?e]"
27
28
'[:find ?e :in $ $ ?x :where [?e]]
29
"Vars used in :in should be distinct"
0 commit comments