sqlmapproject/sqlmap · error · ProgrammingError

(remote) %s

Error message

(remote) %s

What it means

Error "(remote) %s" thrown in sqlmapproject/sqlmap.

Source

Thrown at extra/dbwire/monetdb.py:111

        return None
    if len(value) >= 2 and value[0] == '"' and value[-1] == '"':
        body = value[1:-1]
        if "\\" not in body:
            return body
        # MonetDB renders control bytes as C octal escapes (\ooo) etc.; decode with unicode_escape but only
        # on the ASCII runs so raw multibyte (> 0x7f) is preserved (mirrors pymonetdb's result decoding)
        return "".join(seg.encode("utf-8").decode("unicode_escape") if "\\" in seg else seg
                       for seg in re.split(r"([\x00-\x7f]+)", body))
    return value

def _parse_result(text):
    description, rows = None, []
    for line in text.split("\n"):
        if not line:
            continue
        marker = line[0]
        if marker == "!":  # error
            raise ProgrammingError("(remote) %s" % line[1:].strip())
        elif marker == "%":  # metadata: "<values> # <kind>"
            payload, _, kind = line[1:].rpartition("#")
            if kind.strip() == "name":
                description = [(name.strip(), None, None, None, None, None, None) for name in payload.split(",\t")]
        elif marker == "[":  # tuple: "[ v1,\tv2,\t... ]"
            body = line.strip()
            if body.startswith("[") and body.endswith("]"):
                body = body[1:-1].strip()
            rows.append(tuple(_unquote(v.strip()) for v in body.split(",\t")))
        # "&" result headers, "#" info, "=" no-slice tuples are ignored for our purposes
    return description, rows

class Cursor(object):
    def __init__(self, connection):
        self.connection = connection
        self.description = None
        self.rowcount = -1
        self._rows = []

View on GitHub (pinned to 0a35b20e39)

When it happens

Trigger: Thrown at extra/dbwire/monetdb.py:111 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26). Data as JSON: /api/errors/aa438781ae104a38. Report an issue: GitHub.