jamesmishra/mysqldump-to-csv

Handling NULLs at end of statemtn

Opened this issue · 0 comments

If there is a NULL at end of statement this doesn't handle properly - instead outputting NULL into the CSV.

Needs two more if cases

            if column == 'NULL)':
                latest_row.append(chr(0) + ')')
                continue
            if column == 'NULL);':
                latest_row.append(chr(0) + ');')
                continue