Skip to content

Commit

Permalink
fix lp:1525216 row chunking all NULL values
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbube committed Dec 11, 2015
1 parent 10f9994 commit 636066e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mydumper.c
Expand Up @@ -1602,6 +1602,11 @@ GList * get_chunks_for_table(MYSQL *conn, char *database, char *table, struct co

row=mysql_fetch_row(minmax);
MYSQL_FIELD * fields=mysql_fetch_fields(minmax);

/* Check if all values are NULL */
if (row[0] == NULL)
goto cleanup;

char *min=row[0];
char *max=row[1];

Expand Down

0 comments on commit 636066e

Please sign in to comment.