← Back to team overview

enterprise-support team mailing list archive

[Bug 1347392] [NEW] last row of table not dumped if it brings statement over statement_size

 

Public bug reported:

In mydumper.c dump_table_data() if "statement->len+statement_row->len+1
> statement_size" then the statement is terminated with a ";" then
written out.  The data in statement_row is not written out.

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_row->len)" near the beginning
of the loop.

In the case of the last row, there is no next iteration, so the last
statement_row is never written out.

** Affects: mydumper
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to MySQL.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1347392

Title:
  last row of table not dumped if it brings statement over
  statement_size

To manage notifications about this bug go to:
https://bugs.launchpad.net/mydumper/+bug/1347392/+subscriptions


Follow ups

References