Skip to content

Commit b7fdb1f

Browse files
committed
bug fix for conversion, some types aren't comparable with ==
1 parent 75a4a56 commit b7fdb1f

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

enginetest/queries/integration_plans.go

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sql/types/conversion.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -642,11 +642,7 @@ func GeneralizeTypes(a, b sql.Type) sql.Type {
642642
if b == Null {
643643
return a
644644
}
645-
646-
if a == b {
647-
return a
648-
}
649-
645+
650646
if svt, ok := a.(sql.SystemVariableType); ok {
651647
a = svt.UnderlyingType()
652648
}

0 commit comments

Comments
 (0)