summaryrefslogtreecommitdiff
path: root/scripts/comp_sql.c
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.blaudden>2007-04-19 17:00:29 +0200
committerunknown <msvensson@pilot.blaudden>2007-04-19 17:00:29 +0200
commit4fff310ecfc2958483b3b01375c6b54afd443f7a (patch)
tree8bec7296de055f59aa5ceb634d9bb94c5a568354 /scripts/comp_sql.c
parentb4573eb4caff7e2a112c79f7923d565fb836e8a0 (diff)
downloadmariadb-git-4fff310ecfc2958483b3b01375c6b54afd443f7a.tar.gz
mysql_upgrade win fixes
client/mysql_upgrade.c: Windows fix scripts/CMakeLists.txt: Fix problems with CMakeList causing build to fail scripts/comp_sql.c: Improve comp_sql.c to generate output file with shorter strings
Diffstat (limited to 'scripts/comp_sql.c')
-rw-r--r--scripts/comp_sql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/comp_sql.c b/scripts/comp_sql.c
index 60236774701..328dab0cf13 100644
--- a/scripts/comp_sql.c
+++ b/scripts/comp_sql.c
@@ -74,7 +74,7 @@ int main(int argc, char *argv[])
while(*end && *end != '.')
end++;
*end= 0;
- fprintf(out, "const char* %s={\"\\\n", infile_name);
+ fprintf(out, "const char* %s={\n\"", infile_name);
while (fgets(buff, sizeof(buff), in))
{
@@ -87,7 +87,7 @@ int main(int argc, char *argv[])
Reached end of line, add escaped newline, escaped
backslash and a newline to outfile
*/
- fprintf(out, "\\n\\\n");
+ fprintf(out, "\\n \"\n\"");
curr++;
}
else if (*curr == '\r')