diff options
author | unknown <msvensson@pilot.blaudden> | 2007-04-19 21:30:46 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.blaudden> | 2007-04-19 21:30:46 +0200 |
commit | 36cd228af11ab85df1dbab55138316933107f8bd (patch) | |
tree | 21ba3b2425c7c4650f26c45bb531d691c3780770 /scripts/comp_sql.c | |
parent | ffd062f7c7073e3f082e8cd35a25acd10c38d1ae (diff) | |
download | mariadb-git-36cd228af11ab85df1dbab55138316933107f8bd.tar.gz |
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
Diffstat (limited to 'scripts/comp_sql.c')
-rw-r--r-- | scripts/comp_sql.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/comp_sql.c b/scripts/comp_sql.c index 328dab0cf13..53359d384c1 100644 --- a/scripts/comp_sql.c +++ b/scripts/comp_sql.c @@ -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"); |