Commit a9eae996 authored by unknown's avatar unknown

after merge fix.



client/mysqldump.c:
  after merge fix.
    - 'lengths' declaration moved to the beginning of the block.
parent 8c083f0a
...@@ -2813,12 +2813,13 @@ static char *get_actual_table_name(const char *old_table_name, MEM_ROOT *root) ...@@ -2813,12 +2813,13 @@ static char *get_actual_table_name(const char *old_table_name, MEM_ROOT *root)
my_ulonglong num_rows= mysql_num_rows(table_res); my_ulonglong num_rows= mysql_num_rows(table_res);
if (num_rows > 0) if (num_rows > 0)
{ {
ulong *lengths;
/* /*
Return first row Return first row
TODO: Return all matching rows TODO: Return all matching rows
*/ */
row= mysql_fetch_row(table_res); row= mysql_fetch_row(table_res);
ulong *lengths= mysql_fetch_lengths(table_res); lengths= mysql_fetch_lengths(table_res);
name= strmake_root(root, row[0], lengths[0]); name= strmake_root(root, row[0], lengths[0]);
} }
mysql_free_result(table_res); mysql_free_result(table_res);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment