go-gorm / postgres

GORM PostgreSQL driver
MIT License
228 stars 120 forks source link

Roll back to github.com/jackc/pgx/v4 #198

Closed zchenyu closed 11 months ago

zchenyu commented 1 year ago

What did this pull request do?

Fixes https://github.com/go-gorm/postgres/issues/171 by rolling back to github.com/jackc/pgx/v4 This effectively rolls back this commit (plus some newer code) https://github.com/go-gorm/postgres/commit/321c8fdbd72c1d8dffa4c432ac1110d30a88968a

Upgrading to a different major version (v5) is not backwards compatible. In particular, >=v1.4.6 of this library does not have the same semantics. To properly upgrade to v5, I suggest creating a v2 version of this library.

User Case Description

Using GORM + postresql with enum values.

jinzhu commented 11 months ago

Not going to rollback to old versions, maybe we can fix your issue in the latest driver?