File tree 1 file changed +7
-3
lines changed
Filter options
1 file changed +7
-3
lines changed
Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ import (
27
27
"gitlab.com/postgres-ai/database-lab/pkg/util/pglog"
28
28
)
29
29
30
- const idleCheckDuration = 5 * time .Minute
30
+ const (
31
+ idleCheckDuration = 5 * time .Minute
32
+
33
+ defaultDatabaseName = "postgres"
34
+ )
31
35
32
36
type baseCloning struct {
33
37
cloning
@@ -164,8 +168,8 @@ func (c *baseCloning) CreateClone(cloneRequest *types.CloneCreateRequest) (*mode
164
168
165
169
clone .DB .Port = strconv .FormatUint (uint64 (session .Port ), 10 )
166
170
clone .DB .Host = c .Config .AccessHost
167
- clone .DB .ConnStr = fmt .Sprintf ("host=%s port=%s user=%s" ,
168
- clone .DB .Host , clone .DB .Port , clone .DB .Username )
171
+ clone .DB .ConnStr = fmt .Sprintf ("host=%s port=%s user=%s dbname=%s " ,
172
+ clone .DB .Host , clone .DB .Port , clone .DB .Username , defaultDatabaseName )
169
173
170
174
// TODO(anatoly): Remove mock data.
171
175
clone .Metadata = models.CloneMetadata {
You can’t perform that action at this time.
0 commit comments