Commit 5d535b45 authored by terrymanu's avatar terrymanu
Browse files

write writeStringLenenc use bytes length

parent 8dbbf26e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ public final class MySQLPacketPayload {
            byteBuf.writeByte(0);
            return;
        }
        writeIntLenenc(value.length());
        writeIntLenenc(value.getBytes().length);
        byteBuf.writeBytes(value.getBytes());
    }