Skip to content

Commit 5692947

Browse files
committed
update boolean column typing to cast as SmallIntType
1 parent 0556221 commit 5692947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/dbio/iop/datatype_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,14 +512,14 @@ func TestColumnTypingBoolean(t *testing.T) {
512512
col := Column{Name: "test", Type: BoolType}
513513
bct := BooleanColumnTyping{CastAs: "integer"}
514514
bct.Apply(&col)
515-
assert.Equal(t, IntegerType, col.Type)
515+
assert.Equal(t, SmallIntType, col.Type)
516516
})
517517

518518
t.Run("boolean_cast_as_integer_uppercase", func(t *testing.T) {
519519
col := Column{Name: "test", Type: BoolType}
520520
bct := BooleanColumnTyping{CastAs: "INTEGER"}
521521
bct.Apply(&col)
522-
assert.Equal(t, IntegerType, col.Type)
522+
assert.Equal(t, SmallIntType, col.Type)
523523
})
524524

525525
t.Run("boolean_cast_as_string", func(t *testing.T) {

0 commit comments

Comments
 (0)