{"record":{"id":"e07c848a1e0d11e2","repo":"sqlmapproject/sqlmap","slug":"unexpected-firebird-operation-d","errorCode":null,"errorMessage":"unexpected Firebird operation %d","messagePattern":"unexpected Firebird operation (.+?)","errorType":"exception","errorClass":"OperationalError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/firebird.py","lineNumber":488,"sourceCode":"        try:\n            if self._db_handle is not None:\n                self._send(_pack_int(_op_detach) + _pack_int(self._db_handle))\n                self._response()\n        except Exception:\n            pass\n        self._wire.close()\n\n    # ---- wire helpers ----\n\n    def _send(self, data):\n        self._wire.send(data)\n\n    def _response(self):\n        op = self._wire.recv_int()\n        while op == _op_dummy:\n            op = self._wire.recv_int()\n        if op != _op_response:\n            raise OperationalError(\"unexpected Firebird operation %d\" % op)\n        return _parse_response(self._wire)\n\n    # ---- query ----\n\n    def _query(self, query):\n        try:\n            return self._run(query)\n        except (struct.error, IndexError, ValueError, KeyError) as ex:\n            raise InterfaceError(\"malformed server response: %s\" % ex)\n\n    def _run(self, query):\n        qbytes = query.encode(\"utf-8\")\n        self._send(_pack_int(_op_allocate_statement) + _pack_int(self._db_handle))\n        stmt = self._response()[0]\n\n        try:\n            desc_items = bytes(bytearray([_isc_info_sql_stmt_type])) + _INFO_SQL_SELECT_DESCRIBE_VARS\n            self._send(_pack_int(_op_prepare_statement) + _pack_int(self._trans_handle) + _pack_int(stmt) +","sourceCodeStart":470,"sourceCodeEnd":506,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/firebird.py#L470-L506","documentation":"Error \"unexpected Firebird operation %d\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/firebird.py:488 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"}