mirror of
https://gitee.com/dromara/dbswitch.git
synced 2026-06-05 01:09:41 +08:00
!260 fix:blob类型值为null时,同步后被转换为字节数组写入导致同步结果为乱码
* fix:blob类型值为null时,同步后被转换为字节数组写入导致同步结果为乱码
This commit is contained in:
@@ -70,7 +70,9 @@ public final class ObjectCastUtils {
|
||||
|
||||
|
||||
public static byte[] castToByteArray(final Object in) {
|
||||
if (in instanceof byte[]) {
|
||||
if (in == null) {
|
||||
return null;
|
||||
} else if (in instanceof byte[]) {
|
||||
return (byte[]) in;
|
||||
} else if (in instanceof java.util.Date) {
|
||||
return in.toString().getBytes();
|
||||
|
||||
Reference in New Issue
Block a user