fix ci on postgres

This commit is contained in:
Lunny Xiao 2019-01-21 21:38:19 +08:00
parent 0cd6d581ad
commit 2eae33f1c0
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 3 additions and 3 deletions

View File

@ -56,12 +56,12 @@ func createEngine(dbType, connStr string) error {
if !rows.Next() {
if _, err = db.Exec("CREATE DATABASE xorm_test"); err != nil {
return fmt.Errorf("db.Exec: %v", err)
return fmt.Errorf("CREATE DATABASE: %v", err)
}
}
if schema != nil {
if *schema != "" {
if _, err = db.Exec("CREATE SCHEMA " + *schema); err != nil {
return fmt.Errorf("db.Exec: %v", err)
return fmt.Errorf("CREATE SCHEMA: %v", err)
}
}
case core.MYSQL: