Skip to content

Commit

Permalink
use []byte for blobs in sqlite (sqlc-dev#1693)
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercbk authored and jlisthood committed Apr 28, 2023
1 parent d6433f8 commit e4145be
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/codegen/golang/sqlite_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[]byte"

case "real", "double", "doubleprecision", "float":
if notNull {
Expand Down

0 comments on commit e4145be

Please sign in to comment.