florinpatrascu / bolt_sips

Neo4j driver for Elixir
Apache License 2.0
258 stars 49 forks source link

(Bolt.Sips.Exception) unable to encode value: -128 #93

Closed aknicram closed 4 years ago

aknicram commented 4 years ago

Module: Bolt.Sips.Internals.PackStream.V1

Possible bug is here:

@int8 -127..-17
@int16_low -32_768..-129

Example:

query = "CREATE (t:Test) SET t.value = {value} RETURN t"

iex(30)> Bolt.Sips.query!(c, query, %{value: -128})

** (Bolt.Sips.Exception) unable to encode value: -128
    (bolt_sips 2.0.8) lib/bolt_sips/query.ex:62: Bolt.Sips.Query.query!/4
florinpatrascu commented 4 years ago

Published bolt_sips v2.0.9. Thank you for the PR ❤️