[hibernate-dev] Empty IN list support

Guillaume Smet guillaume.smet at gmail.com
Fri Feb 16 05:38:38 EST 2018


See this related issue: https://hibernate.atlassian.net/browse/HHH-8091

On Fri, Feb 16, 2018 at 11:23 AM, Vlad Mihalcea <mihalcea.vlad at gmail.com>
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 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 it.
>
> Vlad
>
> On Fri, Feb 16, 2018 at 11:21 AM, Bregler, Jonathan <
> jonathan.bregler at sap.com> wrote:
>
> > 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
> > Javadoc returns "True if empty in lists are supported; false otherwise".
> > However, this method doesn't seem to be used anywhere in the Hibernate
> > code. Is there a reason for that?
> >
> > Thanks,
> > Jonathan
> > _______________________________________________
> > hibernate-dev mailing list
> > hibernate-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
> >
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list