提交 8b0e14f0 编写于 作者: S Serge Rider

#751 Query filters apply fix

上级 18c05913
......@@ -103,6 +103,11 @@ public class SQLSemanticProcessor {
// WHERE
FromItem fromItem = select.getFromItem();
String tableAlias = fromItem.getAlias() == null ? null : fromItem.getAlias().getName();
if (tableAlias == null) {
if (fromItem instanceof Table) {
tableAlias = ((Table) fromItem).getName();
}
}
if (filter.hasConditions()) {
StringBuilder whereString = new StringBuilder();
SQLUtils.appendConditionString(filter, dataSource, tableAlias, whereString, true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册