Dustin Getz
2017-04-20 15:20:26 UTC
Is this a bug? I can't pull a string tempid, but I can pull a num tempid.
(d/pull (d/db root-dbconn) ['*] -1)
=> #:db{:id -1}
(d/pull (d/db root-dbconn) ['*] "a")
IllegalArgumentExceptionInfo :db.error/not-a-keyword Cannot interpret as a
keyword: a, no leading : datomic.error/arg (error.clj:57)
(d/pull (d/db root-dbconn) ['*] (d/tempid :db.part/user -1))
=> #:db{:id -9223350046622220289}
(d/pull (d/db root-dbconn) ['*] (d/tempid :db.part/user "a"))
ClassCastException java.lang.String cannot be cast to java.lang.Number
datomic.api/tempid (api.clj:41)
(d/pull (d/db root-dbconn) ['*] -1)
=> #:db{:id -1}
(d/pull (d/db root-dbconn) ['*] "a")
IllegalArgumentExceptionInfo :db.error/not-a-keyword Cannot interpret as a
keyword: a, no leading : datomic.error/arg (error.clj:57)
(d/pull (d/db root-dbconn) ['*] (d/tempid :db.part/user -1))
=> #:db{:id -9223350046622220289}
(d/pull (d/db root-dbconn) ['*] (d/tempid :db.part/user "a"))
ClassCastException java.lang.String cannot be cast to java.lang.Number
datomic.api/tempid (api.clj:41)
--
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.