Martin Simka (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNzQ4M2RkNDU4...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16321?atlOrigin=eyJpIjoiNzQ4M2...
) HHH-16321 (
https://hibernate.atlassian.net/browse/HHH-16321?atlOrigin=eyJpIjoiNzQ4M2...
) Hibernate maps NCLOB to ntext on Sybase (
https://hibernate.atlassian.net/browse/HHH-16321?atlOrigin=eyJpIjoiNzQ4M2...
)
Issue Type: Bug Affects Versions: 6.2.0.CR3 Assignee: Unassigned Components:
hibernate-core Created: 16/Mar/2023 03:15 AM Environment: Hibernate ORM 6.2.0.CR3 + Sybase
16.0 + Sybase JDBC driver (jConnect (TM) for JDBC(TM)/16.0 SP04 PL03 (Build 27544) + extra
connection parameters: `SQLINITSTRING=set quoted_identifier on&SQLINITSTRING=set
ansinull on` Priority: Critical Reporter: Martin Simka (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Hibernate wrongly maps NCLOB to ntext on Sybase. The test
LobUnfetchedPropertyTest.testNClob fails with
com.sybase.jdbc4.jdbc.SybSQLException: Can't find type 'ntext'.
on CREATE TABLE query
create table FileNClob (
id int not null ,
filedata ntext null ,
primary key (id)
) lock datarows
Entity is defined as
@Entity(name = "FileNClob" )
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, includeLazy = false )
public static class FileNClob {
private int id;
private NClob clob;
@Id
@GeneratedValue
public int getId() {
return id;
}
public void setId( int id) {
this.id = id;
}
@Column(name = "filedata" , length = 1024 * 1024)
@Lob
@Basic(fetch = FetchType.LAZY)
public NClob getClob() {
return clob;
}
public void setClob(NClob clob) {
this.clob = clob;
}
}
(
https://hibernate.atlassian.net/browse/HHH-16321#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16321#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:d601792 )