Upgrade pgx to v5.6.0 to fix nil arg handling
@jinzhu is already working on this.
Since Mar 9, 2025.
Assessment
This issue has not been assessed yet.
Description
Description
gorm.io/driver/postgres currently depends on pgx v5.5.5, which has a breaking change in how nil values are handled. For example previously, nil values for jsonB columns were converted to {} via Valuer.Value(), but in pgx v5, nil is now inserted as NULL, causing NOT NULL constraint violations.
This issue was addressed in pgx v5.6.0 (jackc/pgx#1367), but gorm.io/driver/postgres has not yet upgraded to this version.
- Dominant language
- Go
- Stars
- 298
- Forks
- 158
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from go-gorm/postgres
-
TimeZone is matched anywhere in the DSN, so a password containing "TimeZone=" breaks the connection and appears in its errorPossibly taken @anggakrnwn claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
PostgreSQL 18: `23503` changed to `23001`Possibly taken @jinzhu claimed this 5 days ago. Open
-
HasConstraint ignores UniqueName from custom namerMay be free again @jinzhu claimed this 489 days ago, and no pull request is open. Open
-
AutoMigrate error:May be free again @jinzhu claimed this 557 days ago, and no pull request is open. Opentype:question
-
Add example usage codeMay be free again @jinzhu claimed this 658 days ago, and no pull request is open. Open
All issues in go-gorm/postgres
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
shukiv/jabali-panel#2423 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area/docs good first issue help wanted kind/docs priority/p2 triage/accepted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
mattabate/life-distributable#158 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
router-for-me/CLIProxyAPI#7330 ·
Maintainers usually reply within 1 day