Skip to content

Commit ffe8d86

Browse files
author
Terran
committed
Remove the parentheses from the judgment
1 parent 2e1c885 commit ffe8d86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/org/apache/calcite/sql/dialect/MssqlSqlDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public MssqlSqlDialect(Context context) {
172172
final SqlWriter.Frame frame = writer.startFunCall("CEILING");
173173
call.operand(0).unparse(writer, leftPrec, rightPrec);
174174
writer.endFunCall(frame);
175-
} else if (call.getKind() == (SqlKind.SAFE_CAST)) {
175+
} else if (call.getKind() == SqlKind.SAFE_CAST) {
176176
// TRY_CAST is supported but not SAFE_CAST in MS SQL
177177
final SqlWriter.Frame frame = writer.startFunCall("TRY_CAST");
178178
call.operand(0).unparse(writer, leftPrec, rightPrec);

0 commit comments

Comments
 (0)