Marc Grue
2017-06-06 19:56:43 UTC
Hi,
I have an attribute :ns/str with an initial value "a" that is updated to
"b". So everything is fine when I use a history db to find the assertions
and
retractions over time:
[:find ?v ?op
:where [?e :ns/str ?v _ ?op]]
=>
["a" true]
["a" false]
["b" true]
I'm surprised though that ?v and "a" don't seem to unify in the following
query since I get back the exact same result:
[:find ?v ?op
:where [?e :ns/str ?v _ ?op]
[?e :ns/str "a"]]
=>
["a" true]
["a" false]
["b" true]
Why do I get back "b" also?
Thank you,
Marc
I have an attribute :ns/str with an initial value "a" that is updated to
"b". So everything is fine when I use a history db to find the assertions
and
retractions over time:
[:find ?v ?op
:where [?e :ns/str ?v _ ?op]]
=>
["a" true]
["a" false]
["b" true]
I'm surprised though that ?v and "a" don't seem to unify in the following
query since I get back the exact same result:
[:find ?v ?op
:where [?e :ns/str ?v _ ?op]
[?e :ns/str "a"]]
=>
["a" true]
["a" false]
["b" true]
Why do I get back "b" also?
Thank you,
Marc
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.