Treat on type without subclasses renders null = null

Description

When treating the root of a criteria query on a type that does not have subtypes, an invalid null = null is rendered in the query, causing the query to never return any rows. I understand this is a rather strange query, and quite easy to work around (do not treat), but I suspect it is also quite easy to fix. I've attached a testcase that performs the following criteria query:

This results in the following SQL:

Attachments

1

Activity

Details

Assignee

Reporter

Components

Affects versions

Priority

Created August 22, 2016 at 6:35 PM
Updated August 22, 2016 at 6:35 PM