mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed issue #135 , isUpdate bugfix
This commit is contained in:
@@ -623,8 +623,9 @@ public class LogEventConvert extends AbstractCanalLifeCycle implements BinlogPar
|
|||||||
if (column.getIsNull() && newValue == null) {
|
if (column.getIsNull() && newValue == null) {
|
||||||
// 如果全是null
|
// 如果全是null
|
||||||
return false;
|
return false;
|
||||||
} else if (newValue != null && column.getValue().equals(newValue)) {
|
} else if (newValue != null && (!column.getIsNull() && column.getValue().equals(newValue))) {
|
||||||
// 如果不围null,并且相等
|
// fixed issue #135, old column is Null
|
||||||
|
// 如果不为null,并且相等
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user