need to conform to MarshalCQL interface correctly

This commit is contained in:
Gilberto Morejon 2020-03-03 15:47:04 -08:00
parent 321577c3e2
commit 161c67e659
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ func (g *Generator) buildJSONMethods(runs [][]Value, typeName string, runsThresh
// [1]: type name
const cqlMethods = `
// MarshalCQL implements the gocql.Marshaler interface for %[1]s
func (i %[1]s) MarshalCQL() ([]byte, error) {
func (i %[1]s) MarshalCQL(info gocql.TypeInfo) ([]byte, error) {
return []byte(i.String()), nil
}

View File

@ -1846,7 +1846,7 @@ func (i Prime) IsAPrime() bool {
}
// MarshalCQL implements the gocql.Marshaler interface for Prime
func (i Prime) MarshalCQL() ([]byte, error) {
func (i Prime) MarshalCQL(info gocql.TypeInfo) ([]byte, error) {
return []byte(i.String()), nil
}