code: public static void send(final PacketOutputStream pos, final int statementId, final ParameterHolder[] parameters,
                     final int parameterCount, ColumnType[] parameterTypeHeader, byte cursorFlag) throws IOException {
      pos.startPacket(0);
      writeCmd(statementId, parameters, parameterCount, parameterTypeHeader, pos, cursorFlag);
      pos.flush();
    }
docs: Send a prepare statement binary stream.
  
  @param pos database socket
  @param statementId         prepareResult object received after preparation.
  @param parameters          parameters
  @param parameterCount      parameters number
  @param parameterTypeHeader parameters header
  @param cursorFlag          cursor flag. Possible values : <ol>
  <li>CURSOR_TYPE_NO_CURSOR = fetch all</li>
  <li>CURSOR_TYPE_READ_ONLY = fetch by bunch</li>
  <li>CURSOR_TYPE_FOR_UPDATE = fetch by bunch with lock ?</li>
  <li>CURSOR_TYPE_SCROLLABLE = //reserved, but not working</li>
  </ol>
  @throws IOException if a connection error occur