Open JeremS opened 12 months ago
Hello, I am having a bit of an issue with the declaration of a transaction function. I have something like this:
(di/inter-fn [db es] (let [n (d/q '[:find (max ?n) . :where [?id :picture/number ?n]] db)]))
The problem is that when I use this fn, it is as if the (max ?n) . part of the query is processed just as ?n .
(max ?n) .
?n
When I eval this declaration I get:
#datalevin/inter-fn (fn [db es] (clojure.core/let [n (datalevin.core/q '[:find (clojure.core/max ?n) . :where [?id :picture/number ?n]] db)]))
The symbol max in the query is qualified to clojure.core/max instead of staying unqualified to get the aggregate behavior.
max
clojure.core/max
Cheers,
I could not seem to reproduce this. Could you isolate a test case?
Hello, I am having a bit of an issue with the declaration of a transaction function. I have something like this:
The problem is that when I use this fn, it is as if the
(max ?n) .
part of the query is processed just as?n
.When I eval this declaration I get:
The symbol
max
in the query is qualified toclojure.core/max
instead of staying unqualified to get the aggregate behavior.Cheers,