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 `uuid`, `timeuuid` marshal, unmarshall #334

Closed illia-li closed 1 day ago

illia-li commented 1 week ago

Changes:

  1. Marshallig (string)("") and ([]byte)(nil), was unsupported before, now is supported.
  2. Marshallig and Unmarshalling are custom types of the string, []byte, [16]byte go types, was unsupported before, now is supported.
  3. Unmarshalling zero data into []byte, *[]byte, returned ([]byte)(nil) and (*[]byte)(*[nil]) before, now returns ([]byte)([]) and (*[]byte)(*[])