mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
mysql_upgrade portability fixes
client/mysql_upgrade.c: Add defines for WEXITSTATUS Pass arguments on command line instead of --defaults-file=<temp file> mysql-test/r/mysql_upgrade.result: When testing that mysql_upgrade detect if mysqlcheck fails, use an option that is used on all platforms. mysql-test/t/mysql_upgrade.test: When testing that mysql_upgrade detect if mysqlcheck fails, use an option that is used on all platforms. scripts/comp_sql.c: Some compilers have a max string length, insert a newline at every 512th char in long strings
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user