{"record":{"id":"5f65b3af1abb03f5","repo":"sqlmapproject/sqlmap","slug":"unsupported-tds-column-type-0x-02x","errorCode":null,"errorMessage":"unsupported TDS column type 0x%02x","messagePattern":"unsupported TDS column type 0x%02x","errorType":"exception","errorClass":"NotSupportedError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/tds.py","lineNumber":365,"sourceCode":"        col.binary = True\n    elif t == 0xf1:  # XML (value arrives PLP-encoded UTF-16, no size in TYPE_INFO)\n        if _u8(data, off):  # schema-present: B_VARCHAR dbname, B_VARCHAR owner, US_VARCHAR collection\n            off += 1\n            for _ in range(2):\n                off += 1 + _u8(data, off) * 2\n            off += 2 + struct.unpack(\"<H\", data[off:off + 2])[0] * 2\n        else:\n            off += 1\n    elif t == 0x62:  # SQL_VARIANT (4-byte max length; per-value base type carried in the body)\n        col.size = struct.unpack(\"<i\", data[off:off + 4])[0]; off += 4\n    elif t in (0x23, 0x63, 0x22):  # TEXT/NTEXT/IMAGE\n        col.size = struct.unpack(\"<i\", data[off:off + 4])[0]; off += 4\n        if t in (0x23, 0x63):\n            col.collation = data[off:off + 5]; off += 5\n        col.binary = (t == 0x22)\n        # table name (num parts + parts) follows in COLMETADATA for these; handled by caller via name read\n    else:\n        raise NotSupportedError(\"unsupported TDS column type 0x%02x\" % t)\n    return col, off\n\ndef _read_plp(data, off):\n    # PLP (partially-length-prefixed) body: 8-byte total len (or 0xFF..FF NULL / 0xFF..FE unknown) then chunks\n    total = struct.unpack(\"<Q\", data[off:off + 8])[0]; off += 8\n    if total == 0xffffffffffffffff:\n        return None, off\n    out = b\"\"\n    while True:\n        (clen,) = struct.unpack(\"<I\", data[off:off + 4]); off += 4\n        if clen == 0:\n            break\n        out += data[off:off + clen]; off += clen\n    return out, off\n\ndef _decode_value(col, data, off):\n    t = col.type\n    # fixed-length","sourceCodeStart":347,"sourceCodeEnd":383,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/tds.py#L347-L383","documentation":"Error \"unsupported TDS column type 0x%02x\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/tds.py:365 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}