juji-io / datalevin

A simple, fast and versatile Datalog database
https://github.com/juji-io/datalevin
Eclipse Public License 1.0
1.07k stars 60 forks source link

Error transacting db.type/bigdec #225

Closed sg-qwt closed 9 months ago

sg-qwt commented 9 months ago

Seems very similar to #88, jdk 17, using datalevin as normal library

(def conn (d/get-conn "testdb" 
             {:name {:db/valueType :db.type/string}
             :height {:db/valueType :db.type/bigdec}}))
(d/transact! conn [{:name "John" :height 123M} {:name "Peter" :height 12M}])

Execution error (ExceptionInfo) at datalevin.scan/get-first (scan.cljc:233). Fail to get-first: "Value out of range for byte: -255"