Re: [hibernate-dev] Empty IN list support

2018-02-16 Thread Sanne Grinovero
he Jira issue. > > - Jonathan > > From: Guillaume Smet [mailto:guillaume.s...@gmail.com] > Sent: Friday, February 16, 2018 11:39 AM > To: Vlad Mihalcea > Cc: Bregler, Jonathan ; > hibernate-dev@lists.jboss.org > Subject: Re: [hibernate-dev] Empty IN list support > > See this

Re: [hibernate-dev] Empty IN list support

2018-02-16 Thread Bregler, Jonathan
Ok, thanks. For some reason I missed the Jira issue. - Jonathan From: Guillaume Smet [mailto:guillaume.s...@gmail.com] Sent: Friday, February 16, 2018 11:39 AM To: Vlad Mihalcea Cc: Bregler, Jonathan ; hibernate-dev@lists.jboss.org Subject: Re: [hibernate-dev] Empty IN list support See this

Re: [hibernate-dev] Empty IN list support

2018-02-16 Thread Guillaume Smet
See this related issue: https://hibernate.atlassian.net/browse/HHH-8091 On Fri, Feb 16, 2018 at 11:23 AM, Vlad Mihalcea wrote: > I see that we are only using it for testing so that we can skip the: > > testEmptyInListQuery > > query on certain Dialects. > > We could use this info when rendering

Re: [hibernate-dev] Empty IN list support

2018-02-16 Thread Vlad Mihalcea
I see that we are only using it for testing so that we can skip the: testEmptyInListQuery query on certain Dialects. We could use this info when rendering the JPQL/HQL queries to throw an exception before executing the query. Nevertheless, an exception will be thrown anyway even if we don't do i

[hibernate-dev] Empty IN list support

2018-02-16 Thread Bregler, Jonathan
Hi, HANA doesn't support empty IN lists, so executing an HQL query that gets transformed into a SQL query with an empty IN list results in a SQL parser error on the database side. I noticed that the Dialect class already defines a method called "supportsEmptyInList()" which according to the Jav