diff --git a/generator/schema.go b/generator/schema.go index 59d4b78..6340b59 100644 --- a/generator/schema.go +++ b/generator/schema.go @@ -36,6 +36,7 @@ var customImportPaths = map[string]string{ var columnTypes = map[gocql.Type]string{ gocql.TypeAscii: "cqlc.String_Column", gocql.TypeVarchar: "cqlc.String_Column", + gocql.TypeText: "cqlc.String_Column", // the ~~only~~ second fix needed for support C*3 ... gocql.TypeInt: "cqlc.Int32_Column", gocql.TypeBigInt: "cqlc.Int64_Column", gocql.TypeFloat: "cqlc.Float32_Column",