Skip to content

Commit e05cc25

Browse files
committed
allow large content
allow large content in the dump by adjusting field_size_limit to the highest possible
1 parent b641c37 commit e05cc25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mysqldump_to_csv.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
from signal import signal, SIGPIPE, SIG_DFL
99
signal(SIGPIPE, SIG_DFL)
1010

11+
# allow large content in the dump
12+
csv.field_size_limit(sys.maxsize)
13+
1114
def is_insert(line):
1215
"""
1316
Returns true if the line begins a SQL insert statement.

0 commit comments

Comments
 (0)