Skip to content

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

Open
@arunmg007

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)))

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