Skip to content

Commit

Permalink
allow large content
Browse files Browse the repository at this point in the history
allow large content in the dump by adjusting field_size_limit to the highest possible
  • Loading branch information
Fil committed Feb 18, 2016
1 parent b641c37 commit e05cc25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mysqldump_to_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)

# allow large content in the dump
csv.field_size_limit(sys.maxsize)

def is_insert(line):
"""
Returns true if the line begins a SQL insert statement.
Expand Down

0 comments on commit e05cc25

Please sign in to comment.