From e2490418fe6a3c954e366c3096f7d81c9cfd83f4 Mon Sep 17 00:00:00 2001 From: sunx Date: Wed, 8 Nov 2017 18:20:58 +0800 Subject: [PATCH] find a bug "after" should be "before" --- canal-client/src/canal/client/CanalClientTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canal-client/src/canal/client/CanalClientTest.java b/canal-client/src/canal/client/CanalClientTest.java index 77bf11a..ab55fb0 100644 --- a/canal-client/src/canal/client/CanalClientTest.java +++ b/canal-client/src/canal/client/CanalClientTest.java @@ -290,7 +290,7 @@ private static void printEntry(List entrys) { //获取字段值 if (eventType == EventType.DELETE) { - after = printColumn(rowData.getBeforeColumnsList()); + before = printColumn(rowData.getBeforeColumnsList()); } else if (eventType == EventType.INSERT) { after = printColumn(rowData.getAfterColumnsList()); } else { //update