{"record":{"id":"64fff619a3771743","repo":"sqlmapproject/sqlmap","slug":"parameter-binding-is-not-supported-pass-a-fully-f-64fff6","errorCode":null,"errorMessage":"parameter binding is not supported; pass a fully-formed query string","messagePattern":"parameter binding is not supported; pass a fully-formed query string","errorType":"exception","errorClass":"NotSupportedError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/mysql.py","lineNumber":152,"sourceCode":"\ndef _scramble_sha2(password, salt):\n    if not password:\n        return b\"\"\n    d1 = hashlib.sha256(password.encode(\"utf-8\")).digest()\n    d2 = hashlib.sha256(hashlib.sha256(d1).digest() + salt).digest()\n    return _xor(d1, d2)\n\nclass Cursor(object):\n    def __init__(self, connection):\n        self.connection = connection\n        self.description = None\n        self.rowcount = -1\n        self._rows = []\n        self._pos = 0\n\n    def execute(self, query, params=None):\n        if params is not None:\n            raise NotSupportedError(\"parameter binding is not supported; pass a fully-formed query string\")\n        self.description, self.rowcount, self._rows, self._pos = None, -1, [], 0\n        self.description, self._rows, self.rowcount = self.connection._query(query)\n        return self\n\n    def fetchall(self):\n        retVal = self._rows[self._pos:]\n        self._pos = len(self._rows)\n        return retVal\n\n    def fetchone(self):\n        if self._pos >= len(self._rows):\n            return None\n        retVal = self._rows[self._pos]\n        self._pos += 1\n        return retVal\n\n    def close(self):\n        self._rows = []","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/mysql.py#L134-L170","documentation":"Error \"parameter binding is not supported; pass a fully-formed query string\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/mysql.py:152 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"}