JPQL query fails against @Lob annotated field on PostgreSQL

Description

This is the same issue as https://hibernate.atlassian.net/browse/HHH-11477 and can be reproduced the same way. That issue is marked as fixed in 5.2.9 but can be reproduced in 5.4.3.

A temporary workaround is to provide a custom dialect remapping CLOB to LongVarcharTypeDescriptor but I'd prefer to use the provided dialect.

Any hint about this?

Thanks

Environment

Jpa 2.2
Hibernate 5.4.3.Final
PostgreSql 11 (verified on 9.4 too)
jdbc postgresql driver 42.2.5

Status

Assignee

Unassigned

Reporter

tommaso martini

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure