code: public static void sendDirect(final PacketOutputStream pos, byte[] sqlBytes) throws IOException {
      pos.startPacket(0);
      pos.write(Packet.COM_QUERY);
      pos.write(sqlBytes);
      pos.flush();
    }
docs: Send directly to socket the sql data.
  
  @param pos      output stream
  @param sqlBytes the query in UTF-8 bytes
  @throws IOException if connection error occur