Fork me on GitHub
#datomic
<
2023-03-17
>
Alex19:03:56

Hi :spock-hand: I faced strange bug in pro version 0.9.6045

(d/q '[:find (count ?i) .
       :in $ ?deal-status
       :where
       [?d :deal/invoices ?i]
       [?d :deal/status ?d-status]
       [(= ?d-status ?deal-status)]]
     db
     :deal-status) 
;; => 39
(d/q '[:find (count ?i) .
       :in $ ?deal-status
       :where
       [?d :deal/status ?d-status] ;; <- changed order
       [?d :deal/invoices ?i]
       [(= ?d-status ?deal-status)]]
     db
     :deal-status)
;; => 65
Filtering without = - with the same binding for deal status in inputs and where clause works fine 😅 Pretty mind blowing for me 😅

😕 2