ListPrepend bug with int64


#1

Hi,

I tried using the ListPrepend func on the Go SDK, I simply input the func with int64 value and got the below weird behaviour:

ListPrepend(“some-key”, 134362664104100101, true)

The value that actually been written to Couchbase is:
134362664104100100

It looks like the function doing some kind of rounding or maybe it cannot handle int64 types?


#2

Hi @tomer, this is due to how the browser is parsing the value. If you do a Get from your code then you’ll see that the correct value has actually been stored.