fix: SQL 条件表达式缺少括号问题

This commit is contained in:
gaibu 2022-12-14 08:57:52 +08:00
parent 453603b6ad
commit 766b74f040
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ public class AndExpressionX extends AndExpression {
@Override
public String toString() {
return "(" + this.getLeftExpression() + " " + this.getStringExpression() + " " + this.getRightExpression() + ")";
return "(" + super.toString() + ")";
}
}

View File

@ -18,7 +18,7 @@ public class OrExpressionX extends OrExpression {
@Override
public String toString() {
return "(" + this.getLeftExpression() + " " + this.getStringExpression() + " " + this.getRightExpression() + ")";
return "(" + super.toString() + ")";
}
}