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
190 stars 59 forks source link

Fix `ascii` marshal, unmarshall #322

Closed illia-li closed 1 day ago

illia-li commented 1 month ago

Changes:

  1. Unmarshalling zero data into []byte, *[]byte, returned ([]byte)(nil) and (*[]byte)(*[nil]) before, now returns ([]byte)([]) and (*[]byte)(*[])
  2. Unmarshalling into *custom interface{}, was unsupported before, now is supported.
  3. Unmarshalling data with bytes out of the range 0-127, does not return an error before, now return an error.
dkropachev commented 2 weeks ago

@illia-li , can you please rebase it