mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed encoding example
This commit is contained in:
@@ -88,8 +88,6 @@ public class LogEventConvert extends AbstractCanalLifeCycle implements BinlogPar
|
||||
private volatile AviaterRegexFilter nameBlackFilter;
|
||||
|
||||
private TableMetaCache tableMetaCache;
|
||||
private String binlogFileName = "mysql-bin.000001";
|
||||
|
||||
private Charset charset = Charset.defaultCharset();
|
||||
private boolean filterQueryDcl = false;
|
||||
private boolean filterQueryDml = false;
|
||||
@@ -761,6 +759,8 @@ public class LogEventConvert extends AbstractCanalLifeCycle implements BinlogPar
|
||||
} else {
|
||||
// byte数组,直接使用iso-8859-1保留对应编码,浪费内存
|
||||
columnBuilder.setValue(new String((byte[]) value, ISO_8859_1));
|
||||
// columnBuilder.setValueBytes(ByteString.copyFrom((byte[])
|
||||
// value));
|
||||
javaType = Types.BLOB;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user