未验证 提交 78612d1f 编写于 作者: E Elizabeth 提交者: GitHub

#15666 fix missing alias on filter with joins and condition on null (#15823)

上级 70567b42
......@@ -645,9 +645,13 @@ public final class SQLUtils {
}
if (hasNull) {
conString.append("IS NULL OR ");
if (conditionTable != null) {
conString.append(conditionTable).append('.');
if (constraint.getEntityAlias() != null) {
conString.append(constraint.getEntityAlias()).append('.');
} else if (conditionTable != null) {
conString.append(conditionTable).append('.');
}
conString.append(DBUtils.getObjectFullName(dataSource, constraint.getAttribute(), DBPEvaluationContext.DML)).append(" ");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册