Skip to content

Commit 5e03702

Browse files
author
James Cor
committed
conversion tests
1 parent c715cae commit 5e03702

File tree

4 files changed

+746
-242
lines changed

4 files changed

+746
-242
lines changed

sql/expression/comparison_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,5 @@ func eval(t *testing.T, e sql.Expression, row sql.Row) interface{} {
226226
}
227227

228228
func TestValueComparison(t *testing.T) {
229-
require := require.New(t)
230-
229+
// TODO
231230
}

sql/types/bit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ func (t BitType_) CompareValue(ctx *sql.Context, a, b sql.Value) (int, error) {
109109
return res, nil
110110
}
111111

112-
av, err := ConvertValueToUint64(ctx, a)
112+
av, _, err := convertValueToUint64(ctx, a)
113113
if err != nil {
114114
return 0, err
115115
}
116-
bv, err := ConvertValueToUint64(ctx, b)
116+
bv, _, err := convertValueToUint64(ctx, b)
117117
if err != nil {
118118
return 0, err
119119
}

0 commit comments

Comments
 (0)