Skip to content

Commit

Permalink
Merge pull request #1 from fw-ai/pgx-v4
Browse files Browse the repository at this point in the history
Rollback to github.com/jackc/pgx/v4
  • Loading branch information
zchenyu committed Jun 23, 2023
2 parents 18bc84b + 0c93d35 commit b332a09
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 15 deletions.
3 changes: 1 addition & 2 deletions error_translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ package postgres
import (
"encoding/json"

"github.com/jackc/pgconn"
"gorm.io/gorm"

"github.com/jackc/pgx/v5/pgconn"
)

var errCodes = map[string]error{
Expand Down
5 changes: 3 additions & 2 deletions error_translator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package postgres

import (
"errors"
"github.com/jackc/pgx/v5/pgconn"
"gorm.io/gorm"
"testing"

"github.com/jackc/pgconn"
"gorm.io/gorm"
)

func TestDialector_Translate(t *testing.T) {
Expand Down
9 changes: 7 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
module gorm.io/driver/postgres
module github.com/fw-ai/postgres

go 1.18

require (
github.com/jackc/pgx/v5 v5.3.1
github.com/jackc/pgconn v1.14.0
github.com/jackc/pgx/v4 v4.18.1
gorm.io/gorm v1.25.2-0.20230530020048-26663ab9bf55
)

require (
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.2 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgtype v1.14.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
golang.org/x/crypto v0.8.0 // indirect
Expand Down

0 comments on commit b332a09

Please sign in to comment.