Skip to content

Commit

Permalink
Merge pull request #21 from fly-apps/db-w-owner-fix
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
davissp14 authored Dec 21, 2022
2 parents e063887 + 80fba8b commit c8c7066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/flypg/admin/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func ChangePassword(ctx context.Context, pg *pgx.Conn, username, password string

func CreateDatabaseWithOwner(ctx context.Context, pg *pgx.Conn, name, owner string) error {
dbInfo, err := FindDatabase(ctx, pg, name)
if err != nil {
if err != nil && err != pgx.ErrNoRows {
return err
}
// Database already exists.
Expand Down

0 comments on commit c8c7066

Please sign in to comment.