Skip to content

Commit

Permalink
Add support for native JSON/JSONB columns in Postgres results db
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Nov 1, 2018
1 parent ab35fe0 commit 4811126
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backends/sqldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ func (s *sqlDB) createTableSchema(cols []string, colTypes []*sql.ColumnType) ins
typ = "DATE"
case "BOOLEAN": // Postgres, MySQL
typ = "BOOLEAN"
case "JSON", "JSONB": // Postgres
if s.dbType != dbTypePostgres {
typ = "TEXT"
}
default:
typ = "TEXT"
}
Expand Down

0 comments on commit 4811126

Please sign in to comment.