mysql-dump-to-csv
mysql-dump-to-csv copied to clipboard
mysqldumps with single row output's are not getting converted to csv
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)))