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

Upgrade pgx to v5.6.0 to fix nil arg handling #303

Open
shafi-fi9155 opened this issue Mar 9, 2025 · 1 comment
Open

Upgrade pgx to v5.6.0 to fix nil arg handling #303

shafi-fi9155 opened this issue Mar 9, 2025 · 1 comment
Assignees

Comments

@shafi-fi9155
Copy link

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.

@shafi-fi9155
Copy link
Author

@jinzhu Any updates on this? We're blocked on upgrading from v1.4.5 to v1.4.6 or later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants