mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fix bug : full ddl sqls should not assign to extra field but data field
This commit is contained in:
@@ -364,7 +364,7 @@ public class DatabaseTableMeta implements TableMetaTSDB {
|
||||
snapshotDO.setBinlogOffest(position.getPosition());
|
||||
snapshotDO.setBinlogMasterId(String.valueOf(position.getServerId()));
|
||||
snapshotDO.setBinlogTimestamp(position.getTimestamp());
|
||||
snapshotDO.setExtra(JSON.toJSONString(schemaDdls));
|
||||
snapshotDO.setData(JSON.toJSONString(schemaDdls));
|
||||
try {
|
||||
metaSnapshotDAO.insert(snapshotDO);
|
||||
} catch (Throwable e) {
|
||||
|
||||
Reference in New Issue
Block a user