summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.blaudden>2007-02-26 11:00:17 +0100
committerunknown <msvensson@pilot.blaudden>2007-02-26 11:00:17 +0100
commit14f7a1772090a702f0715b075781ef0acbe1afd7 (patch)
tree3ee05b06b0b664426c55d7713a1e6937a75db104
parent778747a847c040128badd21bb15d3d3fd8fd8a29 (diff)
parentd21c7ec1f5ee45abdfb04319c715cc4711379b8a (diff)
downloadmariadb-git-14f7a1772090a702f0715b075781ef0acbe1afd7.tar.gz
Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint mysql-test/t/trigger-grant.test: Auto merged mysql-test/r/rpl_temporary.result: Use local
-rw-r--r--mysql-test/include/get_binlog_dump_thread_id.inc19
-rw-r--r--mysql-test/t/trigger-grant.test2
2 files changed, 18 insertions, 3 deletions
diff --git a/mysql-test/include/get_binlog_dump_thread_id.inc b/mysql-test/include/get_binlog_dump_thread_id.inc
index 830a88b5db6..bfc8506b39e 100644
--- a/mysql-test/include/get_binlog_dump_thread_id.inc
+++ b/mysql-test/include/get_binlog_dump_thread_id.inc
@@ -1,9 +1,22 @@
---exec $MYSQL test -e 'show processlist' | grep 'Binlog Dump' | cut -f1 > $MYSQLTEST_VARDIR/tmp/bl_dump_thread_id
+--exec $MYSQL test -e "show processlist" > $MYSQLTEST_VARDIR/tmp/bl_dump_thread_id
--disable_warnings
drop table if exists t999;
--enable_warnings
-create temporary table t999 (f int);
+# Create a table to hold the process list
+create temporary table t999(
+ id int,
+ user char(255),
+ host char(255),
+ db char(255),
+ Command char(255),
+ time int,
+ State char(255),
+ info char(255)
+);
+# Load processlist into table, headers will create seom warnings
+--disable_warnings
--replace_result $MYSQLTEST_VARDIR "."
eval LOAD DATA INFILE "$MYSQLTEST_VARDIR/tmp/bl_dump_thread_id" into table t999;
-let $id = `select f from t999`;
+--enable_warnings
+let $id = `select Id from t999 where Command="Binlog Dump"`;
drop table t999;
diff --git a/mysql-test/t/trigger-grant.test b/mysql-test/t/trigger-grant.test
index 2e0b8707858..8145212ed5b 100644
--- a/mysql-test/t/trigger-grant.test
+++ b/mysql-test/t/trigger-grant.test
@@ -368,6 +368,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;