mysql-dump-to-csv icon indicating copy to clipboard operation
mysql-dump-to-csv copied to clipboard

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

Open arunmg007 opened this issue 4 years ago • 0 comments

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

arunmg007 avatar Feb 16 '21 11:02 arunmg007