scylladb / gocql

Package gocql implements a fast and robust ScyllaDB client for the Go programming language.
https://docs.scylladb.com/stable/using-scylla/drivers/cql-drivers/scylla-go-driver.html
BSD 3-Clause "New" or "Revised" License
189 stars 59 forks source link

Fix `varint` marshal, unmarshall #309

Open illia-li opened 1 month ago

illia-li commented 1 month ago

Fixed for varint type:

  1. string marshal and unmarshal as nullable. 1.1. Before: marshals "" - caused an error; unmarshals nil data into "0". 1.2. Now: marshals and unmarshals nil data - "".
  2. Big string (bigger then math.MaxInt64) marshal and unmarshal, before not supported, now supported.
  3. custom string unmarshals, before not supported, now supported.
  4. For all go types marshals and unmarshal functions are optimized.
  5. Marshal data, which equal math.MaxUint64, into uint64, uint, return error before, now no error.