提交 d59a5385 authored 作者: Thomas Mueller's avatar Thomas Mueller

Support for null-safe equals. This includes the ANSI SQL standard syntax A IS…

Support for null-safe equals. This includes the ANSI SQL standard syntax A IS [NOT] DISTINCT FROM B as well as the shorter A IS [NOT] B.
上级 026b35f4
......@@ -1065,7 +1065,7 @@ public class Select extends Query {
comp = new Comparison(session, comparisonType, col, param);
} else {
// add the parameters, so they can be set later
comp = new Comparison(session, Comparison.EQUAL, param, param);
comp = new Comparison(session, Comparison.EQUAL_NULL_SAFE, param, param);
}
comp = comp.optimize(session);
boolean addToCondition = true;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论