diff options
author | msvensson@pilot.blaudden <> | 2007-02-26 09:24:03 +0100 |
---|---|---|
committer | msvensson@pilot.blaudden <> | 2007-02-26 09:24:03 +0100 |
commit | 1770993db7d3a24bf9a3f6930f75e3011ef7b8be (patch) | |
tree | 1b0d0e16b6ee038223cfc97103f4588a8e99a771 /mysql-test/t/trigger-grant.test | |
parent | 5068ef885454cc53c84abf9f4540c4b996ef9a03 (diff) | |
download | mariadb-git-1770993db7d3a24bf9a3f6930f75e3011ef7b8be.tar.gz |
Use binary file mode when writing the modified .TRG file to avoid CR/LF's being added on windows
Diffstat (limited to 'mysql-test/t/trigger-grant.test')
-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; |