Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16321 (
https://hibernate.atlassian.net/browse/HHH-16321?atlOrigin=eyJpIjoiNmZkNm...
)
Re: Hibernate maps NCLOB to ntext on Sybase (
https://hibernate.atlassian.net/browse/HHH-16321?atlOrigin=eyJpIjoiNmZkNm...
)
I changed this to use Sybase’s specific unitext type, which is their renaming of the T-SQL
ntext type.
Unfortunately this test still fails because we try to create a NClob from the Connection
for the s.getLobHelper().createNClob( ... ) call. jConnect does not implement that method
(or maybe only in case of ENABLE_LOB_LOCATORS , not really sure).
That comes about because we assume that if the driver implements one, it implements them
all - makes sense, right? Well unfortunately, the jConnect driver does implement
Connection#createBlob and Connection#createClob ; it just does not implement
Connection#createNClob oddly.
I’m just going to skip this test for Sybase. The use case here would be someone mapping a
long (n)varchar as a (N)Clob in their Java model. No one is doing that. And if they are
doing that on Sybase, I think we just say that is not supported (though it would be
interesting to try with ENABLE_LOB_LOCATORS enabled).
(
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#100223- sha1:cdc0af3 )