summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <mats@kindahl-laptop.dnsalias.net>2007-06-19 11:09:22 +0200
committerunknown <mats@kindahl-laptop.dnsalias.net>2007-06-19 11:09:22 +0200
commit312ae6ecfc4082a88ed123b90ff32dacf9e2883d (patch)
tree629ea4f8e48fd0953ed6a695d09383118bfd6b25
parent511ef0cc292f63cc4ae6b7d3bb0fc9d909616187 (diff)
downloadmariadb-git-312ae6ecfc4082a88ed123b90ff32dacf9e2883d.tar.gz
Fixes to tests and test results.
mysql-test/r/binlog_unsafe.result: Result change mysql-test/r/rpl_loaddata_fatal.result: Result change mysql-test/r/rpl_udf.result: Result change mysql-test/t/binlog_innodb.test: Test requires binary log mysql-test/t/binlog_unsafe.test: Test requires binary log mysql-test/t/multi_update.test: Test requires binary log. Error changed for a statement. mysql-test/t/rpl_row_basic_11bugs.test: Error changed for a statement.
-rw-r--r--mysql-test/r/binlog_unsafe.result4
-rw-r--r--mysql-test/r/rpl_loaddata_fatal.result4
-rw-r--r--mysql-test/r/rpl_udf.result8
-rw-r--r--mysql-test/t/binlog_innodb.test1
-rw-r--r--mysql-test/t/binlog_unsafe.test2
-rw-r--r--mysql-test/t/multi_update.test7
-rw-r--r--mysql-test/t/rpl_row_basic_11bugs.test2
7 files changed, 16 insertions, 12 deletions
diff --git a/mysql-test/r/binlog_unsafe.result b/mysql-test/r/binlog_unsafe.result
index 36213cbb2ae..624c7feec1f 100644
--- a/mysql-test/r/binlog_unsafe.result
+++ b/mysql-test/r/binlog_unsafe.result
@@ -5,9 +5,9 @@ CREATE TABLE t3 (b INT AUTO_INCREMENT PRIMARY KEY);
CREATE VIEW v1(a,b) AS SELECT a,b FROM t2,t3;
INSERT INTO t1 SELECT UUID();
Warnings:
-Warning 1588 Statement is not safe to log in statement format.
+Warning 1589 Statement is not safe to log in statement format.
SHOW WARNINGS;
Level Warning
-Code 1588
+Code 1589
Message Statement is not safe to log in statement format.
DROP TABLE t1,t2,t3;
diff --git a/mysql-test/r/rpl_loaddata_fatal.result b/mysql-test/r/rpl_loaddata_fatal.result
index 80def0255ea..6c73c275ff0 100644
--- a/mysql-test/r/rpl_loaddata_fatal.result
+++ b/mysql-test/r/rpl_loaddata_fatal.result
@@ -65,7 +65,7 @@ Replicate_Do_Table
Replicate_Ignore_Table #
Replicate_Wild_Do_Table
Replicate_Wild_Ignore_Table
-Last_Errno 1589
+Last_Errno 1590
Last_Error Fatal error: Not enough memory
Skip_Counter 0
Exec_Master_Log_Pos 325
@@ -83,7 +83,7 @@ Seconds_Behind_Master #
Master_SSL_Verify_Server_Cert No
Last_IO_Errno #
Last_IO_Error #
-Last_SQL_Errno 1589
+Last_SQL_Errno 1590
Last_SQL_Error Fatal error: Not enough memory
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
START SLAVE;
diff --git a/mysql-test/r/rpl_udf.result b/mysql-test/r/rpl_udf.result
index 220358aab9c..d21cfd2539b 100644
--- a/mysql-test/r/rpl_udf.result
+++ b/mysql-test/r/rpl_udf.result
@@ -182,19 +182,19 @@ CREATE TABLE t1(sum INT, price FLOAT(24)) ENGINE=MyISAM;
affected rows: 0
INSERT INTO t1 VALUES(myfunc_int(100), myfunc_double(50.00));
Warnings:
-Warning 1588 Statement is not safe to log in statement format.
+Warning 1589 Statement is not safe to log in statement format.
affected rows: 1
INSERT INTO t1 VALUES(myfunc_int(10), myfunc_double(5.00));
Warnings:
-Warning 1588 Statement is not safe to log in statement format.
+Warning 1589 Statement is not safe to log in statement format.
affected rows: 1
INSERT INTO t1 VALUES(myfunc_int(200), myfunc_double(25.00));
Warnings:
-Warning 1588 Statement is not safe to log in statement format.
+Warning 1589 Statement is not safe to log in statement format.
affected rows: 1
INSERT INTO t1 VALUES(myfunc_int(1), myfunc_double(500.00));
Warnings:
-Warning 1588 Statement is not safe to log in statement format.
+Warning 1589 Statement is not safe to log in statement format.
affected rows: 1
SELECT * FROM t1 ORDER BY sum;
sum price
diff --git a/mysql-test/t/binlog_innodb.test b/mysql-test/t/binlog_innodb.test
index 712708100f5..5703e739701 100644
--- a/mysql-test/t/binlog_innodb.test
+++ b/mysql-test/t/binlog_innodb.test
@@ -1,4 +1,5 @@
source include/have_innodb.inc;
+source include/have_log_bin.inc;
SET BINLOG_FORMAT=MIXED;
diff --git a/mysql-test/t/binlog_unsafe.test b/mysql-test/t/binlog_unsafe.test
index 9e0716cf2b4..f34c22dc5f7 100644
--- a/mysql-test/t/binlog_unsafe.test
+++ b/mysql-test/t/binlog_unsafe.test
@@ -1,6 +1,8 @@
# Test to check that a warning is generated for unsafe statements
# executed under statement mode logging.
+source include/have_log_bin.inc;
+
SET BINLOG_FORMAT=STATEMENT;
CREATE TABLE t1 (a CHAR(40));
diff --git a/mysql-test/t/multi_update.test b/mysql-test/t/multi_update.test
index 79d3d18dd13..6f5ac70a34b 100644
--- a/mysql-test/t/multi_update.test
+++ b/mysql-test/t/multi_update.test
@@ -3,7 +3,8 @@
#
# Requires grants, so won't work with embedded server test
--- source include/not_embedded.inc
+source include/not_embedded.inc;
+source include/have_log_bin.inc;
--disable_warnings
drop table if exists t1,t2,t3;
@@ -594,7 +595,7 @@ set @@session.binlog_format= mixed;
insert into t1 values (1,1),(2,2);
insert into t2 values (1,1),(4,4);
reset master;
---error ER_DUP_ENTRY_WITH_KEY_NAME
+error ER_DUP_ENTRY;
UPDATE t2,t1 SET t2.a=t1.a+2;
# check
select * from t2 /* must be (3,1), (4,4) */;
@@ -607,7 +608,7 @@ delete from t2;
insert into t1 values (1,2),(3,4),(4,4);
insert into t2 values (1,2),(3,4),(4,4);
reset master;
---error ER_DUP_ENTRY_WITH_KEY_NAME
+error ER_DUP_ENTRY;
UPDATE t2,t1 SET t2.a=t2.b where t2.a=t1.a;
show master status /* there must be the UPDATE query event */;
diff --git a/mysql-test/t/rpl_row_basic_11bugs.test b/mysql-test/t/rpl_row_basic_11bugs.test
index 6008ce638de..fb43664f121 100644
--- a/mysql-test/t/rpl_row_basic_11bugs.test
+++ b/mysql-test/t/rpl_row_basic_11bugs.test
@@ -211,7 +211,7 @@ insert into t1 values (1,1),(2,2);
insert into t2 values (1,1),(4,4);
connection master;
---error ER_DUP_ENTRY_WITH_KEY_NAME
+error ER_DUP_ENTRY;
UPDATE t2,t1 SET t2.a=t1.a+2;
select * from t2 /* must be (3,1), (4,4) */;
sync_slave_with_master;