Soe Thu 5 years ago
parent
commit
9bca165bdd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      db.go

+ 1 - 1
db.go

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