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
413
413
if err := b .cat .AuthorizationHandler ().HandleAuth (b .ctx , b .authQueryState , v .Auth ); err != nil && b .authEnabled {
414
414
b .handleErr (err )
415
415
}
416
-
416
+
417
417
var resolvedChildren []any
418
418
if len (v .Children ) > 0 {
419
419
resolvedChildren = make ([]any , len (v .Children ))
@@ -621,10 +621,10 @@ func (b *Builder) typeExpandComparisonLiteral(left, right sql.Expression) (sql.E
621
621
622
622
if leftGf != nil && rightLit != nil {
623
623
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 ()) {
628
628
if left .Type ().MaxTextResponseByteLength (b .ctx ) >= right .Type ().MaxTextResponseByteLength (b .ctx ) {
629
629
// The types are congruent and the literal does not lose
630
630
// information casting to the column type. The conditions
You can’t perform that action at this time.
0 commit comments