提交 ecd0a0cb 编写于 作者: J jurgen

Struct types in custom SQL queries order

上级 32708ece
......@@ -35,6 +35,7 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jkiss.dbeaver.DBException;
import org.jkiss.dbeaver.model.DBPDataSource;
import org.jkiss.dbeaver.model.DBUtils;
import org.jkiss.dbeaver.model.data.DBDAttributeConstraint;
import org.jkiss.dbeaver.model.data.DBDDataFilter;
import org.jkiss.dbeaver.model.sql.SQLDataSource;
......@@ -124,7 +125,7 @@ public class SQLSemanticProcessor {
}
Table orderTable = tableAlias == null ? null : new Table(tableAlias);
for (DBDAttributeConstraint co : filter.getOrderConstraints()) {
Expression orderExpr = new Column(orderTable, co.getAttribute().getName());
Expression orderExpr = new Column(orderTable, DBUtils.getObjectFullName(co.getAttribute()));
OrderByElement element = new OrderByElement();
element.setExpression(orderExpr);
if (co.isOrderDescending()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册