Skip to content

Commit

Permalink
go vet: struct literal uses unkeyed fields
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-dartigues committed May 15, 2024
1 parent e5685bf commit 460a1f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion connectors/databases/client/mssql/mssql_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (c MssqlConnector) Load(schema interface{}) (interface{}, error) {
if err != nil {
return db, err
}
return &dbtype.MssqlDB{db}, nil
return &dbtype.MssqlDB{DB: db}, nil
}
func (c MssqlConnector) Schema() interface{} {
return c.rawConn.Schema()
Expand Down
2 changes: 1 addition & 1 deletion connectors/databases/client/mysql/mysql_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (c MysqlConnector) Load(schema interface{}) (interface{}, error) {
if err != nil {
return db, err
}
return &dbtype.MysqlDB{db}, nil
return &dbtype.MysqlDB{DB: db}, nil
}
func (c MysqlConnector) Schema() interface{} {
return c.mysqlRawConn.Schema()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (c PostgresqlConnector) Load(schema interface{}) (interface{}, error) {
if err != nil {
return db, err
}
return &dbtype.PostgresqlDB{db}, nil
return &dbtype.PostgresqlDB{DB: db}, nil
}
func (c PostgresqlConnector) Schema() interface{} {
return c.rawConn.Schema()
Expand Down

0 comments on commit 460a1f5

Please sign in to comment.