Distinct query on an entity having an unlimited length text field results in exception on MS SQL Server

Description

I have an entity containing - beside other fields - one field with an unlimited text length:

When I execute the following query on it

it gets translated to

resulting in the following exception on Microsoft SQL server:

Shouldn't the query get translated to

?

Environment

None

Testing Notes

Add notes...

Assignee

Unassigned

Reporter

Mibex Software

Add-on Type

None

Team

None

CC

None

Risk factor

None

QA Kickoff Status

None

QA Demo Status

None

Story Points

0.25

Components

Affects versions

Priority

Critical
Configure