From c8028bf25da82774095a824e6b92a2218844fa99 Mon Sep 17 00:00:00 2001 From: Javier Lecuona Date: Mon, 20 Jun 2022 22:49:06 -0300 Subject: [PATCH] use []byte for blobs in sqlite --- internal/codegen/golang/sqlite_type.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/codegen/golang/sqlite_type.go b/internal/codegen/golang/sqlite_type.go index 3667367b83..fca3a2561a 100644 --- a/internal/codegen/golang/sqlite_type.go +++ b/internal/codegen/golang/sqlite_type.go @@ -21,10 +21,7 @@ func sqliteType(req *plugin.CodeGenRequest, col *plugin.Column) string { return "sql.NullInt64" case "blob": - if notNull { - return "[]uint8" - } - return "*[]uint8" + return "[]uint8" case "real", "double", "doubleprecision", "float": if notNull {