From 7fc6fe0f2b4f50dad8c3c6ae13df774a9d1b5b6a Mon Sep 17 00:00:00 2001 From: Pinglei Guo Date: Mon, 18 Feb 2019 16:36:31 -0800 Subject: [PATCH] [gen] #7 forgot to update column type mapping --- generator/schema.go | 1 + 1 file changed, 1 insertion(+) 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",