Marius K (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *commented* on HHH-16216 (
https://hibernate.atlassian.net/browse/HHH-16216?atlOrigin=eyJpIjoiOWJkYj...
)
Re: SybaseASEDialect creates additional not null checks (
https://hibernate.atlassian.net/browse/HHH-16216?atlOrigin=eyJpIjoiOWJkYj...
)
and this is not only limited to null checks in combination with parameters
String hql = "select r from MyUser r where 1=1 and r.firstname = :firstname";
Query query = entityManager.createQuery(hql);
query.setParameter("firstname", null);
Object result = query.getSingleResult();
results in
select
m1_0.MY_USER_ID,
m1_0.FIRSTNAME,
m1_0.LASTNAME
from
MY_USER m1_0
where
1=1
and 1 is not null
and 1 is not null
and m1_0.FIRSTNAME=?
and m1_0.FIRSTNAME is not null
(
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:65be9f2 )