Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pace/bricks
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 29c3939452f45af63796727a03689e35d1112ec0
Choose a base ref
..
head repository: pace/bricks
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dee94b545dbdc0cb2bf18f38f12c9ae18b11e541
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 backend/postgres/errors.go
6 changes: 3 additions & 3 deletions backend/postgres/errors.go
Original file line number Diff line number Diff line change
@@ -13,18 +13,18 @@ import (
var ErrNotUnique = errors.New("not unique")

func IsErrConnectionFailed(err error) bool {
// go-pg has this check internally for network errors
// bun has this check internally for network errors
if errors.Is(err, io.EOF) {
return true
}

// go-pg has this check internally for network errors
// bun has this check internally for network errors
_, ok := err.(net.Error)
if ok {
return true
}

// go-pg has similar check for integrity violation issues, here we check network issues
// bun has similar check for integrity violation issues, here we check network issues
var pgErr pgdriver.Error

if errors.As(err, &pgErr) {