Skip to content

mysqldumps with single row output's are not getting converted to csv #2

Description

@arunmg007

A single row mysqldump fails iteration

writer.writerow(dict(zip(schema, value)))
TypeError: zip argument #2 must support iteration

Considered adding this as a workaround unless there are alternatives.

        if type(values[-1]) is not tuple:
            writer.writerow(dict(zip(schema, values)))
        else:
            for value in values:
                writer.writerow(dict(zip(schema, value)))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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