We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a24095d commit a6ee6dcCopy full SHA for a6ee6dc
database.go
@@ -234,7 +234,11 @@ func (p *Pgpool) createTemplateDB() (string, error) {
234
}
235
checksum := md5.Sum(schemaSql)
236
schemaHex := hex.EncodeToString(checksum[:])
237
- tmpl := fmt.Sprintf("%v_%v", p.BaseName, schemaHex)
+ baseName := "dbtestpg"
238
+ if p.BaseName != "" {
239
+ baseName = p.BaseName
240
+ }
241
+ tmpl := fmt.Sprintf("%v_%v", baseName, schemaHex)
242
243
var dbExists bool
244
err = withNewConnection(
0 commit comments