1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-02 14:22:51 +03:00

mysql_upgrade portability fixes

This commit is contained in:
msvensson@pilot.blaudden
2007-04-19 21:30:46 +02:00
parent 2c95135c8d
commit da93a36a0e
4 changed files with 46 additions and 78 deletions

View File

@ -106,6 +106,15 @@ int main(int argc, char *argv[])
curr++;
}
}
if (*(curr-1) != '\n')
{
/*
Some compilers have a max string length,
insert a newline at every 512th char in long
strings
*/
fprintf(out, "\"\n\"");
}
}
fprintf(out, "\\\n\"};\n");