Skip to content

Commit

Permalink
fix fieldpacket填充值问题from执笔相思
Browse files Browse the repository at this point in the history
  • Loading branch information
magicdoom committed Sep 13, 2015
1 parent cabccbf commit 453136f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/io/mycat/server/packet/FieldPacket.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ private void writeBody(ByteBuffer buffer) {
buffer.put((byte) (type & 0xff));
BufferUtil.writeUB2(buffer, flags);
buffer.put(decimals);
buffer.position(buffer.position() + FILLER.length);
buffer.put((byte)0x00);
buffer.put((byte)0x00);
//buffer.position(buffer.position() + FILLER.length);
if (definition != null) {
BufferUtil.writeWithLength(buffer, definition);
}
Expand Down

0 comments on commit 453136f

Please sign in to comment.