Skip to content

Commit

Permalink
provider/hana: fix dropped error
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs committed Nov 2, 2023
1 parent 818fcdd commit 4d93140
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions provider/hana/hana.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ func CreateConnection(config dict.Dicter) (*sql.DB, error) {
}

db, err := OpenDB(uri)
if err != nil {
return db, err
}
if err := db.Ping(); err != nil {
return nil, fmt.Errorf("Failed while establishing connection: %v", err)
}
Expand Down

0 comments on commit 4d93140

Please sign in to comment.