Skip to content

Commit

Permalink
Merge pull request #465 from magicdoom/master
Browse files Browse the repository at this point in the history
fix fieldpacket填充值问题from执笔相思
  • Loading branch information
apachemycat committed Sep 22, 2015
2 parents 9357bda + 453136f commit 4f88ca9
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 4f88ca9

Please sign in to comment.