Skip to content

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

Description

@shafi-fi9155

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions