pike.git / lib / modules / Sql.pmod / tds.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/tds.pike:247:    int last_packet;    int len;    // NOTE: Network byteorder!!    sscanf(header, "%-1c%-1c%2c", packet_type, last_packet, len);    len -= 8;       busy = !(done = last_packet);       string data = socket->read(len);    if (!data || sizeof(data) < len) { -  tds_error("Failed to read packet data (%d bytes), got %O (%d bytes), %s\n", +  tds_error("Failed to read packet data (%d bytes), got %O (%d bytes), %s.\n",    len, data, sizeof(data||""), strerror(socket->errno()));    }    TDS_WERROR("Read packet with %d bytes.\n%s\n",    sizeof(data), hex_dump(data));    inbuf = inbuf[inpos..] + data;    inpos = 0;    }       protected void destroy()    {