protected void visitExpression(Column column, Operator op, Operand rvalue) { visitColumn(column); if (op == Operator.EQ || op == Operator.NOTEQ) { if (column.getType().spec == ColumnSpec.BOOLEAN) { rvalue = getBooleanLiteral(rvalue); } if (directory.getDialect().hasNullEmptyString() && rvalue instanceof StringLiteral && ((StringLiteral) rvalue).value.isEmpty()) { // see NXP-6172, empty values are Null in Oracle op = op == Operator.EQ ? Operator.ISNULL : Operator.ISNOTNULL; rvalue = null; } } op.accept(this); if (rvalue != null) { rvalue.accept(this); } }
String operator; boolean substring = fulltext != null && fulltext.contains(columnName); if ("".equals(value) && dialect.hasNullEmptyString() && !substring) {