revert a goracle parser function

This commit is contained in:
Tomoya AMACHI 2020-03-23 05:04:38 +09:00
parent 2dc9add23e
commit 0dabb020ae
No known key found for this signature in database
GPG Key ID: F37EC01B0043942F
1 changed files with 1 additions and 1 deletions

View File

@ -870,7 +870,7 @@ func (cfg *goracleDriver) Parse(driverName, dataSourceName string) (*core.Uri, e
db.DbName = match
}
}
if db.DbName == "" && len(matches) != 0 {
if db.DbName == "" {
return nil, errors.New("dbname is empty")
}
return db, nil