anchor.diff:    //pc.connect(database: genLargeDatabaseName(65535 + 10));
     //pc.connect(database: genLargeDatabaseName(300));
     p(pc);
  +  pc.query(genSampleQuery());
   }
  
positive.code:     p("end.");
    }
  
    copyStringToBuffer(bufferList, bufferOffset, s) {
      for (var i = 0, len = s.length; i < len; i++) {
        bufferList[bufferOffset + i] = s.codeUnitAt(i);
      }
    }
  
    setBufferLength(a, len) {
      // Reorder the bytes to place them in network byte order.
      if (len <= 255) {
        a[3] = len;
      } else if (len <= 65535) {
        _foreign.setUint16(0, len);
        a[3] = _list[0];
        a[2] = _list[1];
      } else if (len <= 2147483647) {
        _foreign.setUint32(0, len);
        a[3] = _list[0];
        a[2] = _list[1];
        a[1] = _list[2];
        a[0] = _list[3];
      } else {
        throw "Failed to set the buffer length because it exceeded the "
            "limit of unsigned 32 bits: ${len}";
  
negative.code:     p(list);
      return list;
    }
  
    /* End of StartUp section */
  
    /* Query section */
  
    copyStringToBuffer(bufferList, offset, string) {
      for (var i = 0, len = string.length; i < len; i++) {
        bufferList[offset + i] = string.codeUnitAt(i);
      }
    }
  
    query(String command) {
      // 6 is for 32bits length, null after string and terminator.
      var msgLen = 6 + command.length, list = new Uint8List(msgLen + 1);
      list[0] = 81; // Q
      setBufferLength(list, 1, msgLen);
      copyStringToBuffer(list, 5, command);
      p(["query", list]);
      try {
        _socket.write(list.buffer);
      } catch (e) {
        throw "Failed to send the startup message.";
      }
      readQueryResults();
    }
  
    readQueryResults() {
      var b = _socket.readNext();
      if (b != null) {
        p(["query results", b.asUint8List()]);
        parseQueryResponse(b.asUint8List());
      }
    }
  
    parseQueryResponse(list) {
  
    }
  
    /* End of Query section */
  
    static final BACKEND_STATUS_I = 73; // I - Idle
    static final BACKEND_STATUS_T = 84; // T - Transaction block
  