[#2646] SQL Server error "The text, ntext, and image data types cannot be compared or sorted" when using LIMIT with a SELECT [text, image] statement

This commit is contained in:
Lukas Eder 2014-05-12 17:58:13 +02:00
parent 36f7d9e20e
commit fb8df86748

View File

@ -816,7 +816,8 @@ class SelectQueryImpl<R extends Record> extends AbstractSelect<R> implements Sel
else if (getLimit().isApplicable() && asList().contains(dialect)){
context.formatSeparator()
.keyword("order by")
.sql(" 1");
.sql(" ")
.keyword("@@version");
}
context.end(SELECT_ORDER_BY);