summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2005-07-19 00:55:37 +0400
committerunknown <konstantin@mysql.com>2005-07-19 00:55:37 +0400
commit7f6f31ae73674eb65f4881608b22c843efc23179 (patch)
tree751108ce077ef66187d4c557a01975a26665d188 /mysql-test/r
parent21332fe0a0b510d7b5f5f171a41cbede1965c623 (diff)
parentddc3586495aa82f310b0e5c2127b77f28c711c27 (diff)
downloadmariadb-git-7f6f31ae73674eb65f4881608b22c843efc23179.tar.gz
Merge mysql.com:/home/kostja/mysql/mysql-4.1-root
into mysql.com:/home/kostja/mysql/mysql-5.0-merge client/mysqltest.c: Auto merged mysql-test/r/rpl_log.result: Auto merged mysql-test/r/rpl_rotate_logs.result: Auto merged mysql-test/r/select.result: Auto merged mysql-test/r/timezone_grant.result: Auto merged mysql-test/t/ctype_utf8.test: Auto merged mysql-test/t/timezone_grant.test: Auto merged sql/sql_prepare.cc: Auto merged sql/sql_repl.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_yacc.yy: Auto merged tests/mysql_client_test.c: Auto merged configure.in: Manual merge mysql-test/r/olap.result: Manual merge mysql-test/t/olap.test: Manual merge mysql-test/t/select.test: Manual merge sql/mysqld.cc: Manual merge sql/sql_parse.cc: Manual merge
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/olap.result11
-rw-r--r--mysql-test/r/rpl_log.result4
-rw-r--r--mysql-test/r/rpl_rotate_logs.result10
-rw-r--r--mysql-test/r/select.result28
-rw-r--r--mysql-test/r/timezone_grant.result7
5 files changed, 53 insertions, 7 deletions
diff --git a/mysql-test/r/olap.result b/mysql-test/r/olap.result
index a19734d55b5..0b422047a49 100644
--- a/mysql-test/r/olap.result
+++ b/mysql-test/r/olap.result
@@ -576,4 +576,15 @@ EXPLAIN SELECT type FROM v1 GROUP BY type WITH ROLLUP;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using filesort
DROP VIEW v1;
+CREATE TABLE t1 (a INT(10) NOT NULL, b INT(10) NOT NULL);
+INSERT INTO t1 VALUES (1, 1);
+INSERT INTO t1 VALUES (1, 2);
+SELECT a, b, a AS c, COUNT(*) AS count FROM t1 GROUP BY a, b, c WITH ROLLUP;
+a b c count
+1 1 1 1
+1 1 NULL 1
+1 2 1 1
+1 2 NULL 1
+1 NULL NULL 2
+NULL NULL NULL 2
DROP TABLE t1;
diff --git a/mysql-test/r/rpl_log.result b/mysql-test/r/rpl_log.result
index 5e0eec6305d..bc2e3370019 100644
--- a/mysql-test/r/rpl_log.result
+++ b/mysql-test/r/rpl_log.result
@@ -69,12 +69,12 @@ master-bin.000002 346 Query 1 434 use `test`; insert into t1 values (1)
master-bin.000002 434 Query 1 510 use `test`; drop table t1
show binary logs;
Log_name File_size
-master-bin.000001 0
+master-bin.000001 1171
master-bin.000002 510
start slave;
show binary logs;
Log_name File_size
-slave-bin.000001 0
+slave-bin.000001 1285
slave-bin.000002 348
show binlog events in 'slave-bin.000001' from 4;
Log_name Pos Event_type Server_id End_log_pos Info
diff --git a/mysql-test/r/rpl_rotate_logs.result b/mysql-test/r/rpl_rotate_logs.result
index a6d3697987a..f1618e246fa 100644
--- a/mysql-test/r/rpl_rotate_logs.result
+++ b/mysql-test/r/rpl_rotate_logs.result
@@ -27,8 +27,8 @@ insert into t2 values (34),(67),(123);
flush logs;
show binary logs;
Log_name File_size
-master-bin.000001 0
-master-bin.000002 0
+master-bin.000001 461
+master-bin.000002 213
master-bin.000003 98
create table t3 select * from temp_table;
select * from t3;
@@ -43,12 +43,12 @@ start slave;
purge master logs to 'master-bin.000002';
show master logs;
Log_name File_size
-master-bin.000002 0
+master-bin.000002 213
master-bin.000003 407
purge binary logs to 'master-bin.000002';
show binary logs;
Log_name File_size
-master-bin.000002 0
+master-bin.000002 213
master-bin.000003 407
purge master logs before now();
show binary logs;
@@ -74,7 +74,7 @@ count(*)
create table t4 select * from temp_table;
show binary logs;
Log_name File_size
-master-bin.000003 0
+master-bin.000003 4167
master-bin.000004 0
master-bin.000005 2032
show master status;
diff --git a/mysql-test/r/select.result b/mysql-test/r/select.result
index d327b491ebf..2a38c5fc86f 100644
--- a/mysql-test/r/select.result
+++ b/mysql-test/r/select.result
@@ -2757,3 +2757,31 @@ f2
1
NULL
drop table t1,t2;
+create table t2 (a tinyint unsigned);
+create index t2i on t2(a);
+insert into t2 values (0), (254), (255);
+explain select * from t2 where a > -1;
+id select_type table type possible_keys key key_len ref rows Extra
+1 SIMPLE t2 index t2i t2i 2 NULL 3 Using where; Using index
+select * from t2 where a > -1;
+a
+0
+254
+255
+drop table t2;
+CREATE TABLE t1 (a int, b int, c int);
+INSERT INTO t1
+SELECT 50, 3, 3 FROM DUAL
+WHERE NOT EXISTS
+(SELECT * FROM t1 WHERE a = 50 AND b = 3);
+SELECT * FROM t1;
+a b c
+50 3 3
+INSERT INTO t1
+SELECT 50, 3, 3 FROM DUAL
+WHERE NOT EXISTS
+(SELECT * FROM t1 WHERE a = 50 AND b = 3);
+SELECT * FROM t1;
+a b c
+50 3 3
+DROP TABLE t1;
diff --git a/mysql-test/r/timezone_grant.result b/mysql-test/r/timezone_grant.result
index dfe0b75ee43..3758f3c2645 100644
--- a/mysql-test/r/timezone_grant.result
+++ b/mysql-test/r/timezone_grant.result
@@ -47,6 +47,13 @@ select * from mysql.time_zone_name;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name'
select Name, convert_tz('2004-11-30 12:00:00', Name, 'UTC') from mysql.time_zone_name;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name'
+drop table t1, t2;
+create table t1 (a int, b datetime);
+create table t2 (a int, b varchar(40));
+update t1 set b = '2005-01-01 10:00';
+update t1 set b = convert_tz(b, 'UTC', 'UTC');
+update t1 join t2 on (t1.a = t2.a) set t1.b = '2005-01-01 10:00' where t2.b = 'foo';
+update t1 join t2 on (t1.a = t2.a) set t1.b = convert_tz('2005-01-01 10:00','UTC','UTC') where t2.b = 'foo';
delete from mysql.user where user like 'mysqltest\_%';
delete from mysql.db where user like 'mysqltest\_%';
delete from mysql.tables_priv where user like 'mysqltest\_%';