diff --git a/provider/hana/hana.go b/provider/hana/hana.go index c706c2c76..a75a39f11 100644 --- a/provider/hana/hana.go +++ b/provider/hana/hana.go @@ -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) }