Marius K (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *commented* on HHH-16216 (
https://hibernate.atlassian.net/browse/HHH-16216?atlOrigin=eyJpIjoiM2Q2N2...
)
Re: @Query creates additional not null checks for SybaseASEDialect (
https://hibernate.atlassian.net/browse/HHH-16216?atlOrigin=eyJpIjoiM2Q2N2...
)
Hi Jan,
thank you for looking into this. I attached a new example based on the
hibernate-test-case-templates.
hibernate-orm-6.zip (
https://hibernate.atlassian.net/secure/attachment/50228/50228_hibernate-o... )
Using <property name="hibernate.dialect"
value="org.hibernate.dialect.H2Dialect"/> or <property
name="hibernate.dialect"
value="org.hibernate.dialect.SybaseDialect"/>
results in
Hibernate:
select
m1_0.MY_USER_ID,
m1_0.FIRSTNAME,
m1_0.LASTNAME
from
MY_USER m1_0
where
m1_0.FIRSTNAME=?
and m1_0.LASTNAME=?
which is fine
But <property name="hibernate.dialect"
value="org.hibernate.dialect.SybaseASEDialect"/> results in
Hibernate:
select
m1_0.MY_USER_ID,
m1_0.FIRSTNAME,
m1_0.LASTNAME
from
MY_USER m1_0
where
m1_0.FIRSTNAME=?
and m1_0.FIRSTNAME is not null
and m1_0.LASTNAME=?
and m1_0.LASTNAME is not null
which has additionall null checks
(
https://hibernate.atlassian.net/browse/HHH-16216#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16216#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:077879e )