Commit 546e2d31 authored by unknown's avatar unknown

compilation failures fixes. mysqldump now compiles on AIX 4.3.


client/mysqldump.c:
  row[i] is char* so some compilers don't want to put it into a unsigned char*. A C++ comment.
parent fa68d580
......@@ -1684,7 +1684,7 @@ static void dumpTable(uint numFields, char *table)
else if (opt_hex_blob && is_blob)
{
/* sakaik got the idea to to provide blob's in hex notation. */
unsigned char *ptr= row[i], *end= ptr+ lengths[i];
char *ptr= row[i], *end= ptr+ lengths[i];
fputs("0x", md_result_file);
for (; ptr < end ; ptr++)
fprintf(md_result_file, "%02X", *ptr);
......@@ -2246,7 +2246,7 @@ int main(int argc, char **argv)
}
if (opt_master_data && do_show_master_status(sock))
goto err;
if (opt_single_transaction && do_unlock_tables(sock)) // unlock but no commit!
if (opt_single_transaction && do_unlock_tables(sock)) /* unlock but no commit! */
goto err;
if (opt_alldbs)
......
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