Skip to content

Commit

Permalink
Make database column ForceUser nullable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbub committed Sep 5, 2017
1 parent c276e65 commit 6389264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type database struct {
Host sql.NullString `db:"host"`
Port int64 `db:"port"`
Database string `db:"database"`
ForceUser string `db:"force_user"`
ForceUser sql.NullString `db:"force_user"`
PoolSize int64 `db:"pool_size"`
ReservePool int64 `db:"reserve_pool"`
PoolMode sql.NullString `db:"pool_mode"`
Expand Down Expand Up @@ -116,7 +116,7 @@ func (s *SQLStore) GetDatabases(ctx context.Context) ([]domain.Database, error)
Host: row.Host.String,
Port: row.Port,
Database: row.Database,
ForceUser: row.ForceUser,
ForceUser: row.ForceUser.String,
PoolSize: row.PoolSize,
ReservePool: row.ReservePool,
PoolMode: row.PoolMode.String,
Expand Down

0 comments on commit 6389264

Please sign in to comment.