DBZ-4384 Correctly skip emitting events when LOB_ERASE is detected
This commit is contained in:
parent
71eb089e4e
commit
54cb7bea25
@ -197,6 +197,11 @@ else if (EventType.LOB_ERASE == event.getEventType()) {
|
|||||||
// nothing is done with the event, its just consumed and treated as merged.
|
// nothing is done with the event, its just consumed and treated as merged.
|
||||||
LOGGER.warn("\tLOB_ERASE for table '{}' column '{}' is not supported.",
|
LOGGER.warn("\tLOB_ERASE for table '{}' column '{}' is not supported.",
|
||||||
lastSelectLobLocatorEvent.getTableId(), lastSelectLobLocatorEvent.getColumnName());
|
lastSelectLobLocatorEvent.getTableId(), lastSelectLobLocatorEvent.getColumnName());
|
||||||
|
if (lastEvent != null && EventType.SELECT_LOB_LOCATOR == lastEvent.getEventType()) {
|
||||||
|
LOGGER.trace("\tSkipped LOB_ERASE, discarding it and the prior SELECT_LOB_LOCATOR");
|
||||||
|
lastEvent = null;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
LOGGER.trace("\tSkipped LOB_ERASE, treated as merged.");
|
LOGGER.trace("\tSkipped LOB_ERASE, treated as merged.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user