last row of table not dumped if it brings statement over statement_size
Bug #1347392 reported by
William Shallum
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Data Dumper |
Fix Released
|
Critical
|
Max Bubenick |
Bug Description
In mydumper.c dump_table_data() if "statement-
The code seems to expect the next iteration of the mysql_fetch_row loop to write out the INSERT INTO statement and the data in statement_row (this is the code checking "if (statement_
In the case of the last row, there is no next iteration, so the last statement_row is never written out.
Related branches
Changed in mydumper: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Patch added. This checks if statement_row is not empty after the loop ends. If it is not empty it is either appended to an existing statement or a new "INSERT INTO" line.