Skip to content

ValueError: too many values to unpack #60

@movermeyer

Description

@movermeyer
Traceback (most recent call last):
  <some lines elided for privacy>
  File "C:\Python27\lib\site-packages\firebirdsql\fbcore.py", line 367, in fetchall
    return [tuple(r) for r in self._fetch_records]
  File "C:\Python27\lib\site-packages\firebirdsql\fbcore.py", line 192, in _fetch_generator
    stmt.handle, stmt.xsqlda)
ValueError: too many values to unpack

This is a result of this line in fbcore.py:

(rows, more_data) = connection._op_fetch_response(stmt.handle, stmt.xsqlda)

Which assumes that there are only 2 values returned. However, _op_fetch_response() can return 3 values since it can return the result of _parse_op_response() (line 780 of wireprotocol.py).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions