|
@@ -26,7 +26,7 @@ func Open(driver string, args ...interface{}) (*DB, error) {
|
|
if driver == "" {
|
|
if driver == "" {
|
|
return nil, errors.New("Invalid driver name.")
|
|
return nil, errors.New("Invalid driver name.")
|
|
}
|
|
}
|
|
- d, err := gorm.Open(driver, args)
|
|
|
|
|
|
+ d, err := gorm.Open(driver, args...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|