fix: linter

This commit is contained in:
johnnyjoy 2025-07-23 22:13:48 +08:00
parent ed23cbc011
commit 9ea2f9f686
1 changed files with 19 additions and 20 deletions

View File

@ -512,7 +512,7 @@ func (c *CommonSQLConverter) handleBooleanComparison(ctx *ConvertContext, field,
return err
}
return nil
} else {
}
// Other fields use IS TRUE / NOT(... IS TRUE)
var sqlExpr string
if operator == "=" {
@ -533,7 +533,6 @@ func (c *CommonSQLConverter) handleBooleanComparison(ctx *ConvertContext, field,
}
return nil
}
}
// Special handling for MySQL - use raw operator with CAST
if _, ok := c.dialect.(*MySQLDialect); ok {