5758596061626364656667
*/ public byte[] getPacketBody() throws IOException { final XSerializer ps = new XSerializer(); ps.writeInt(this.command, 1); ps.writeFixedLengthString(this.databaseName); return ps.toByteArray(); } /** * */
*/ public byte[] getPacketBody() throws IOException { final XSerializer ps = new XSerializer(); ps.writeInt(this.command, 1); ps.writeFixedLengthString(this.sql); return ps.toByteArray(); } /** * */
8990919293949596979899
s.writeInt(this.fieldType, 1); s.writeInt(this.fieldOptions, 2); s.writeInt(this.decimalPrecision, 1); s.writeInt(this.reserved, 2); if(this.defaultValue != null) s.writeLengthCodedString(this.defaultValue); return s.toByteArray(); } /** * */
6667686970717273747576
ps.writeInt(this.command, 1); ps.writeLong(this.binlogPosition, 4); ps.writeInt(this.binlogFlag, 2); ps.writeLong(this.serverId, 4); ps.writeFixedLengthString(this.binlogFileName); return ps.toByteArray(); } /** * */
7576777879808182838485
s.writeInt(this.serverCollation, 1); s.writeInt(this.serverStatus, 2); s.writeInt(0, 13); s.writeNullTerminatedString(this.scramble2); s.writeNullTerminatedString(this.pluginProvidedData); return s.toByteArray(); } /** * */
5960616263646566676869
public byte[] getPacketBody() { final XSerializer s = new XSerializer(32); s.writeInt(this.packetMarker, 1); s.writeInt(this.warningCount, 2); s.writeInt(this.serverStatus, 2); return s.toByteArray(); } /** * */
5455565758596061626364
public byte[] getPacketBody() { final XSerializer s = new XSerializer(1024); for(StringColumn column : this.columns) { s.writeLengthCodedString(column); } return s.toByteArray(); } /** * */
6970717273747576777879
s.writeUnsignedLong(this.affectedRows); s.writeUnsignedLong(this.insertId); s.writeInt(this.serverStatus, 2); s.writeInt(this.warningCount, 2); if(this.message != null) s.writeFixedLengthString(this.message); return s.toByteArray(); } /** * */
s.writeInt(this.packetMarker, 1); s.writeInt(this.errorCode, 2); s.writeFixedLengthString(this.slash); s.writeFixedLengthString(this.sqlState); s.writeFixedLengthString(this.errorMessage); return s.toByteArray(); } /** * */
7475767778798081828384
if(this.initialSchema != null) s.writeNullTerminatedString(StringColumn.valueOf(this.initialSchema.getBytes(this.encoding))); // final RawPacket request = new RawPacket(); request.setSequence(1); request.setPacketBody(s.toByteArray()); request.setLength(request.getPacketBody().length); transport.getOutputStream().writePacket(request); transport.getOutputStream().flush(); //