diff --git a/enumer.go b/enumer.go index 63941dd..4912441 100644 --- a/enumer.go +++ b/enumer.go @@ -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 } diff --git a/golden_test.go b/golden_test.go index 1efc715..2edd8d2 100644 --- a/golden_test.go +++ b/golden_test.go @@ -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 }