Skip to content

Commit

Permalink
remove TextFormatNotSupported error
Browse files Browse the repository at this point in the history
  • Loading branch information
imor committed Nov 26, 2024
1 parent 3cde648 commit 4394c81
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pg_replicate/src/conversions/cdc_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ pub enum CdcEventConversionError {
#[error("unchanged toast not yet supported")]
UnchangedToastNotSupported,

#[error("text format not supported")]
TextFormatNotSupported,

#[error("invalid string value")]
InvalidStr(#[from] Utf8Error),

Expand Down Expand Up @@ -282,8 +279,7 @@ impl CdcEventConverter {
TupleData::UnchangedToast => {
return Err(CdcEventConversionError::UnchangedToastNotSupported)
}
TupleData::Text(_) => return Err(CdcEventConversionError::TextFormatNotSupported),
TupleData::Binary(bytes) => self
TupleData::Text(bytes) | TupleData::Binary(bytes) => self
.tuple_converter
.try_from_tuple_data(&column_schema.typ, &bytes[..])?,
};
Expand Down

0 comments on commit 4394c81

Please sign in to comment.