go-duck-cli 1.1.20 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -329,7 +329,7 @@ func CreateDatabaseAndMigrate(masterDB *gorm.DB) gin.HandlerFunc {
|
|
|
329
329
|
var exists int
|
|
330
330
|
masterDB.Raw("SELECT 1 FROM pg_database WHERE datname = ?", req.DBName).Scan(&exists)
|
|
331
331
|
if exists == 0 {
|
|
332
|
-
masterDB.Exec(fmt.Sprintf("CREATE DATABASE
|
|
332
|
+
masterDB.Exec(fmt.Sprintf("CREATE DATABASE \\\"%s\\\"", req.DBName))
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
// 2. Clear other primary flags for this role if setting new primary
|
package/package.json
CHANGED