jamesmishra / mysqldump-to-csv

A quickly-hacked-together Python script to turn mysqldump files to CSV files. Optimized for Wikipedia database dumps.
MIT License
327 stars 127 forks source link

Update empty-field handling in mysqldump_to_csv.py #2

Closed swbuehler closed 8 years ago

swbuehler commented 9 years ago

Made a change to the if that handles empty or 'NULL' field values so that it returns an empty field rather than "", which will get imported as "" and not as an empty value.