{"record":{"id":"3a3006217a3c193e","repo":"sqlmapproject/sqlmap","slug":"remote-firebird-error-s-s","errorCode":null,"errorMessage":"(remote) firebird error %s%s","messagePattern":"\\(remote\\) firebird error (.+?)(.+?)","errorType":"exception","errorClass":"IntegrityError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/firebird.py","lineNumber":352,"sourceCode":"def _check_status(wire):\n    gds, message = set(), \"\"\n    n = wire.recv_int()\n    while n != _isc_arg_end:\n        if n == _isc_arg_gds:\n            gds_code = wire.recv_int()\n            if gds_code:\n                gds.add(gds_code)\n        elif n == _isc_arg_number:\n            message += \" %d\" % wire.recv_int()\n        elif n in (_isc_arg_string, _isc_arg_interpreted, _isc_arg_sql_state):\n            s = wire.recv(wire.recv_int(), align=True)\n            if n != _isc_arg_sql_state:\n                message += \" \" + s.decode(\"utf-8\", \"replace\")\n        n = wire.recv_int()\n    if gds:\n        message = (\"(remote) firebird error %s%s\" % (sorted(gds), message)).strip()\n        if gds & _GDS_INTEGRITY:\n            raise IntegrityError(message)\n        if gds & _GDS_DATA:\n            raise DataError(message)\n        if _GDS_WARNING not in gds:\n            raise OperationalError(message)\n\ndef _pack_int(v):\n    return struct.pack(\"!i\", v)\n\ndef _pack_bytes(v):\n    return _pack_int(len(v)) + v + b\"\\x00\" * ((4 - len(v) % 4) % 4)\n\ndef _le(b):\n    n = 0\n    for c in reversed(bytearray(b)):\n        n = (n << 8) | c\n    return n\n\ndef _le_signed(b):","sourceCodeStart":334,"sourceCodeEnd":370,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/firebird.py#L334-L370","documentation":"_check_status walked an isc_arg status vector containing at least one gds error code: the server reported a failure for the last operation. The message aggregates the gds codes and any number/string args the server attached — the canonical channel for remote Firebird errors (SQL errors, lock conflicts, missing objects).","triggerScenarios":"Thrown at extra/dbwire/firebird.py:352 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Decode the gds codes against the Firebird error-code list to find the real cause","Fix the offending statement/object named in the attached message text"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}