Skip to content

Commit

Permalink
Support bit varying.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 5, 2024
1 parent 0179450 commit 1b2f7d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/debezium/converters/bit_varying.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func NewBitVaryingConverter(optionalCharMaxLength int) BitVaryingConverter {
return BitVaryingConverter{optionalCharMaxLength: optionalCharMaxLength}
}

func (BitVaryingConverter) ToField(name string) Field {
func (BitVaryingConverter) ToField(name string) debezium.Field {
return debezium.Field{
FieldName: name,
DebeziumType: debezium.Bits,
Expand All @@ -38,5 +38,5 @@ func (b BitVaryingConverter) Convert(value any) (any, error) {
}
}

return stringToByteA(stringValue), nil
return stringToByteA(stringValue)
}
2 changes: 1 addition & 1 deletion lib/postgres/scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestScanAdapter_ParsePrimaryKeyValueForOverrides(t *testing.T) {
name: "unsupported data type",
dataType: schema.Array,
value: "1234",
expectedErr: `DataType(21) for column "col" is not supported for use as a primary key`,
expectedErr: `DataType(22) for column "col" is not supported for use as a primary key`,
},
{
name: "boolean - malformed",
Expand Down

0 comments on commit 1b2f7d0

Please sign in to comment.