From 32fc40991cc36bacf4146a653e7c22b8fa2bc5c9 Mon Sep 17 00:00:00 2001 From: Raminder Singh Date: Sun, 1 Dec 2024 12:12:22 +0530 Subject: [PATCH] return null for unchanged toast values --- pg_replicate/src/conversions/cdc_event.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pg_replicate/src/conversions/cdc_event.rs b/pg_replicate/src/conversions/cdc_event.rs index bde3322..97f4fbf 100644 --- a/pg_replicate/src/conversions/cdc_event.rs +++ b/pg_replicate/src/conversions/cdc_event.rs @@ -60,9 +60,7 @@ impl CdcEventConverter { for (i, column_schema) in column_schemas.iter().enumerate() { let cell = match &tuple_data[i] { TupleData::Null => Cell::Null, - TupleData::UnchangedToast => { - return Err(CdcEventConversionError::UnchangedToastNotSupported) - } + TupleData::UnchangedToast => Cell::Null, TupleData::Binary(_) => { return Err(CdcEventConversionError::BinaryFormatNotSupported) }