Skip to content

BasicRelationalConverter converts enum arrays to null #1593

Closed
@jurriaan

Description

@jurriaan

Opening a new ticket since I cannot reopen #1544 and the issue seems to also be present in the latest 3.0.x releases.

When updating from Spring v3.0.x to v3.1.1 we get the following database error when trying to persist an empty list of an enum type (kotlin emptyList()) to an array column in PostgreSQL:

null value in column "foo" of relation "bar" violates not-null constraint

I've created a small example project with a test that can reproduce the issue. It shows that it's not possible to persist arrays of enums, whether they are empty or not on spring-boot 3.0.9/3.1.x, but can on earlier spring boot versions:

https://github.com/jurriaan/issue-1544

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions