Skip to content

Commit a216d06

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent 07959b8 commit a216d06

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sql/planbuilder/scalar.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func (b *Builder) buildInjectedExpr(inScope *scope, v ast.InjectedExpr) sql.Expr
413413
if err := b.cat.AuthorizationHandler().HandleAuth(b.ctx, b.authQueryState, v.Auth); err != nil && b.authEnabled {
414414
b.handleErr(err)
415415
}
416-
416+
417417
var resolvedChildren []any
418418
if len(v.Children) > 0 {
419419
resolvedChildren = make([]any, len(v.Children))
@@ -621,10 +621,10 @@ func (b *Builder) typeExpandComparisonLiteral(left, right sql.Expression) (sql.E
621621

622622
if leftGf != nil && rightLit != nil {
623623
if types.IsSigned(left.Type()) && types.IsSigned(right.Type()) ||
624-
types.IsUnsigned(left.Type()) && types.IsUnsigned(right.Type()) ||
625-
types.IsFloat(left.Type()) && types.IsFloat(right.Type()) ||
626-
types.IsDecimal(left.Type()) && types.IsDecimal(right.Type()) ||
627-
types.IsText(left.Type()) && types.IsText(right.Type()) {
624+
types.IsUnsigned(left.Type()) && types.IsUnsigned(right.Type()) ||
625+
types.IsFloat(left.Type()) && types.IsFloat(right.Type()) ||
626+
types.IsDecimal(left.Type()) && types.IsDecimal(right.Type()) ||
627+
types.IsText(left.Type()) && types.IsText(right.Type()) {
628628
if left.Type().MaxTextResponseByteLength(b.ctx) >= right.Type().MaxTextResponseByteLength(b.ctx) {
629629
// The types are congruent and the literal does not lose
630630
// information casting to the column type. The conditions

0 commit comments

Comments
 (0)