Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollback to github.com/jackc/pgx/v4 #1

Merged
merged 2 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading