summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-04-26 21:10:13 +0300
committerunknown <monty@mashka.mysql.fi>2003-04-26 21:10:13 +0300
commit3e90ec6a582ec6a39209c00329ed93a7cc639ded (patch)
treeb6c7972aefbe2a8d4c3651b65e740684673ec52b /mysql-test
parent62af18cb8729894625d005e260838f68b7c57175 (diff)
parent418467e32ad8617c1546870f1b24493601ca4d47 (diff)
downloadmariadb-git-3e90ec6a582ec6a39209c00329ed93a7cc639ded.tar.gz
Merge with 3.23:
Set innobase_flush_log_at_trx_commit to 1 by default Fix problem with timestamp on 64 bit systems Reserve alarms for up to 10 slave threads BitKeeper/etc/logging_ok: auto-union mysql-test/t/rpl_alter.test: Auto merged mysys/charset.c: Auto merged sql/log_event.cc: Auto merged mysql-test/r/join.result: Merge with 3.23 mysql-test/t/join.test: Merge with 3.23 sql/ha_innodb.cc: Merge with 3.23; Set innobase_flush_log_at_trx_commit to 1 by default sql/log_event.h: Merge with 3.23; Fix problem with timestamp on 64 bit systems sql/mini_client.cc: Use local version sql/mysqld.cc: Reserve alarms for up to 10 slave threads sql/slave.cc: Use local version sql/sql_list.h: Use local version
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/join.result3
-rw-r--r--mysql-test/t/join.test14
-rw-r--r--mysql-test/t/rpl_alter.test22
3 files changed, 28 insertions, 11 deletions
diff --git a/mysql-test/r/join.result b/mysql-test/r/join.result
index 3211dcf76a9..1b5766e3ab4 100644
--- a/mysql-test/r/join.result
+++ b/mysql-test/r/join.result
@@ -273,6 +273,9 @@ cust 20
SELECT emp.rate_code, lr.base_rate FROM t1 AS emp LEFT JOIN t2 AS lr USING (siteid, rate_code) WHERE lr.siteid = 'rivercats' AND emp.emp_id = 'psmith';
rate_code base_rate
cust 20
+ID Value1 ID Value2
+ID Value1 ID Value2
+ID Value1 ID Value2
drop table t1,t2;
create table t1 (i int);
create table t2 (i int);
diff --git a/mysql-test/t/join.test b/mysql-test/t/join.test
index 7a9868e60ef..08cc5731723 100644
--- a/mysql-test/t/join.test
+++ b/mysql-test/t/join.test
@@ -273,6 +273,20 @@ SELECT emp.rate_code, lr.base_rate FROM t1 AS emp LEFT JOIN t2 AS lr USING (site
drop table t1,t2;
#
+# Problem with internal list handling when reducing WHERE
+#
+
+CREATE TABLE t1 (ID INTEGER NOT NULL PRIMARY KEY, Value1 VARCHAR(255));
+CREATE TABLE t2 (ID INTEGER NOT NULL PRIMARY KEY, Value2 VARCHAR(255));
+INSERT INTO t1 VALUES (1, 'A');
+INSERT INTO t2 VALUES (1, 'B');
+
+SELECT * FROM t1 NATURAL JOIN t2 WHERE 1 AND (Value1 = 'A' AND Value2 <> 'B');
+SELECT * FROM t1 NATURAL JOIN t2 WHERE 1 AND Value1 = 'A' AND Value2 <> 'B';
+SELECT * FROM t1 NATURAL JOIN t2 WHERE (Value1 = 'A' AND Value2 <> 'B') AND 1;
+drop table t1,t2;
+
+#
# Test combination of join methods
#
diff --git a/mysql-test/t/rpl_alter.test b/mysql-test/t/rpl_alter.test
index 710dd2d09d6..f1fbf60776b 100644
--- a/mysql-test/t/rpl_alter.test
+++ b/mysql-test/t/rpl_alter.test
@@ -1,19 +1,19 @@
source include/master-slave.inc;
-drop database if exists d1;
-create database d1;
-create table d1.t1 ( n int);
-alter table d1.t1 add m int;
-insert into d1.t1 values (1,2);
-create table d1.t2 (n int);
-insert into d1.t2 values (45);
-rename table d1.t2 to d1.t3, d1.t1 to d1.t2;
+drop database if exists test_$1;
+create database test_$1;
+create table test_$1.t1 ( n int);
+alter table test_$1.t1 add m int;
+insert into test_$1.t1 values (1,2);
+create table test_$1.t2 (n int);
+insert into test_$1.t2 values (45);
+rename table test_$1.t2 to test_$1.t3, test_$1.t1 to test_$1.t2;
save_master_pos;
connection slave;
sync_with_master;
-select * from d1.t2;
-select * from d1.t3;
+select * from test_$1.t2;
+select * from test_$1.t3;
connection master;
-drop database d1;
+drop database test_$1;
save_master_pos;
connection slave;
sync_with_master;