diff options
author | unknown <msvensson@pilot.blaudden> | 2007-02-26 09:24:03 +0100 |
---|---|---|
committer | unknown <msvensson@pilot.blaudden> | 2007-02-26 09:24:03 +0100 |
commit | 51b59d69074212cf8ab3b2f8e3cd49592f7ba088 (patch) | |
tree | 1b0d0e16b6ee038223cfc97103f4588a8e99a771 | |
parent | 9d616d572cb118333fafc64ee4da910f61698e37 (diff) | |
download | mariadb-git-51b59d69074212cf8ab3b2f8e3cd49592f7ba088.tar.gz |
Use binary file mode when writing the modified .TRG file to avoid CR/LF's being added on windows
-rw-r--r-- | mysql-test/t/trigger-grant.test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/t/trigger-grant.test b/mysql-test/t/trigger-grant.test index 53062dbc270..96bd6acd02d 100644 --- a/mysql-test/t/trigger-grant.test +++ b/mysql-test/t/trigger-grant.test @@ -241,6 +241,8 @@ open(FILE, "<", $fname) or die; my @content= grep($_ !~ /^definers=/, <FILE>); close FILE; open(FILE, ">", $fname) or die; +# Use binary file mode to avoid CR/LF's being added on windows +binmode FILE; print FILE @content; print FILE "definers='' '\@' '\@abc\@def\@\@' '\@hostname' '\@abcdef\@\@\@hostname'\n"; close FILE; |