File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments