Skip to content

Commit 9fdcc57

Browse files
Fix: reset connections after init for registering custom types (#18)
1 parent 3209931 commit 9fdcc57

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/storage/postgres/core.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ func Create(ctx context.Context, cfg config.Database, init Init) (*Storage, erro
3030
if err := init(ctx, conn); err != nil {
3131
return nil, err
3232
}
33+
34+
// reset all connections for registering custom types
35+
conn.Pool().Reset()
3336
}
3437

3538
return &Storage{

0 commit comments

Comments
 (0)