mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Merge from mysql-5.5.10-release
This commit is contained in:

committed by
MySQL Build Team
commit
18d2e55c51
@@ -25,6 +25,8 @@ sys_vars.rpl_semi_sync_master_enabled_basic # Bug #59148 2011-01-10 joro 'INSTAL
|
||||
sys_vars.rpl_semi_sync_master_timeout_basic # Bug #59148 2011-01-10 joro 'INSTALL PLUGIN rpl_semi_sync_master' fails in release build with debug binaries
|
||||
sys_vars.rpl_semi_sync_master_trace_level_basic # Bug #59148 2011-01-10 joro 'INSTALL PLUGIN rpl_semi_sync_master' fails in release build with debug binaries
|
||||
sys_vars.rpl_semi_sync_master_wait_no_slave_basic # Bug #59148 2011-01-10 joro 'INSTALL PLUGIN rpl_semi_sync_master' fails in release build with debug binaries
|
||||
rpl.rpl_semi_sync_event # Bug #59148 2011-02-02 svoj 'INSTALL PLUGIN rpl_semi_sync_master' fails in release build with debug binaries
|
||||
rpl.rpl_semi_sync # Bug #59148 2011-02-02 svoj 'INSTALL PLUGIN rpl_semi_sync_master' fails in release build with debug binaries
|
||||
|
||||
# BUG #59055 : All ndb tests should be removed from the repository
|
||||
# Leaving the sys_vars tests for now. sys_vars.all_vars.test fails on removing ndb tests
|
||||
|
@@ -1376,3 +1376,15 @@ NULL 1 NULL
|
||||
SET storage_engine=NULL;
|
||||
ERROR 42000: Variable 'storage_engine' can't be set to the value of 'NULL'
|
||||
#
|
||||
# Bug #59686 crash in String::copy() with time data type
|
||||
#
|
||||
SELECT min(timestampadd(month, 1>'', from_days('%Z')));
|
||||
min(timestampadd(month, 1>'', from_days('%Z')))
|
||||
NULL
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '%Z'
|
||||
create table t1(a time);
|
||||
insert into t1 values ('00:00:00'),('00:01:00');
|
||||
select 1 from t1 where 1 < some (select cast(a as datetime) from t1);
|
||||
1
|
||||
drop table t1;
|
||||
|
@@ -4629,3 +4629,35 @@ DROP DATABASE `test-database`;
|
||||
#
|
||||
# End of 5.1 tests
|
||||
#
|
||||
#
|
||||
# Verify that two modes can be given in --compatible;
|
||||
# and are reflected in SET SQL_MODE in the mysqldump output.
|
||||
# Also verify that a prefix of the mode's name is enough.
|
||||
#
|
||||
CREATE TABLE t1 (a INT);
|
||||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||||
/*!40103 SET TIME_ZONE='+00:00' */;
|
||||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS' */;
|
||||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||||
DROP TABLE IF EXISTS `t1`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
);
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
LOCK TABLES `t1` WRITE;
|
||||
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||
|
||||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
@@ -245,3 +245,12 @@ x
|
||||
NULL
|
||||
drop procedure p1;
|
||||
drop tables t1,t2,t3;
|
||||
#
|
||||
# Bug#60085 crash in Item::save_in_field() with time data type
|
||||
#
|
||||
CREATE TABLE t1(a date, b int, unique(b), unique(a), key(b)) engine=innodb;
|
||||
INSERT INTO t1 VALUES ('2011-05-13', 0);
|
||||
SELECT * FROM t1 WHERE b < (SELECT CAST(a as date) FROM t1 GROUP BY a);
|
||||
a b
|
||||
2011-05-13 0
|
||||
DROP TABLE t1;
|
||||
|
@@ -296,6 +296,18 @@ the_date the_time the_date the_time
|
||||
2010-01-01 01:01:01 2010-01-01 01:01:01
|
||||
DROP TABLE t1;
|
||||
DROP VIEW v1;
|
||||
#
|
||||
# Bug#59685 crash in String::length with date types
|
||||
#
|
||||
CREATE TABLE t1(a DATE, b YEAR, KEY(a));
|
||||
INSERT INTO t1 VALUES ('2011-01-01',2011);
|
||||
SELECT b = (SELECT CONVERT(a, DATE) FROM t1 GROUP BY a) FROM t1;
|
||||
b = (SELECT CONVERT(a, DATE) FROM t1 GROUP BY a)
|
||||
1
|
||||
SELECT b = CONVERT((SELECT CONVERT(a, DATE) FROM t1 GROUP BY a), DATE) FROM t1;
|
||||
b = CONVERT((SELECT CONVERT(a, DATE) FROM t1 GROUP BY a), DATE)
|
||||
1
|
||||
DROP TABLE t1;
|
||||
End of 5.1 tests
|
||||
#
|
||||
# Bug #33629: last_day function can return null, but has 'not null'
|
||||
|
@@ -60,6 +60,13 @@ set session optimizer_switch="index_merge";
|
||||
ERROR 42000: Variable 'optimizer_switch' can't be set to the value of 'index_merge'
|
||||
set session optimizer_switch="foobar";
|
||||
ERROR 42000: Variable 'optimizer_switch' can't be set to the value of 'foobar'
|
||||
#
|
||||
# Bug#59894 set optimizer_switch to e or d causes invalid
|
||||
# memory writes/valgrind warnings
|
||||
|
||||
set global optimizer_switch = 'd';
|
||||
set global optimizer_switch = 'e';
|
||||
ERROR 42000: Variable 'optimizer_switch' can't be set to the value of 'e'
|
||||
SET @@global.optimizer_switch = @start_global_value;
|
||||
SELECT @@global.optimizer_switch;
|
||||
@@global.optimizer_switch
|
||||
|
@@ -46,5 +46,13 @@ set session optimizer_switch="index_merge";
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set session optimizer_switch="foobar";
|
||||
|
||||
--echo #
|
||||
--echo # Bug#59894 set optimizer_switch to e or d causes invalid
|
||||
--echo # memory writes/valgrind warnings
|
||||
--echo
|
||||
set global optimizer_switch = 'd'; # means default
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global optimizer_switch = 'e';
|
||||
|
||||
SET @@global.optimizer_switch = @start_global_value;
|
||||
SELECT @@global.optimizer_switch;
|
||||
|
@@ -887,5 +887,13 @@ SELECT MONTHNAME(0), MONTHNAME(0) IS NULL, MONTHNAME(0) + 1;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
SET storage_engine=NULL;
|
||||
|
||||
--echo #
|
||||
--echo # Bug #59686 crash in String::copy() with time data type
|
||||
--echo #
|
||||
|
||||
SELECT min(timestampadd(month, 1>'', from_days('%Z')));
|
||||
|
||||
create table t1(a time);
|
||||
insert into t1 values ('00:00:00'),('00:01:00');
|
||||
select 1 from t1 where 1 < some (select cast(a as datetime) from t1);
|
||||
drop table t1;
|
||||
|
@@ -2203,5 +2203,15 @@ DROP DATABASE `test-database`;
|
||||
--echo # End of 5.1 tests
|
||||
--echo #
|
||||
|
||||
--echo #
|
||||
--echo # Verify that two modes can be given in --compatible;
|
||||
--echo # and are reflected in SET SQL_MODE in the mysqldump output.
|
||||
--echo # Also verify that a prefix of the mode's name is enough.
|
||||
--echo #
|
||||
CREATE TABLE t1 (a INT);
|
||||
# no_t = no_table_options; no_f = no_field_options
|
||||
--exec $MYSQL_DUMP --compatible=no_t,no_f --skip-comments test
|
||||
DROP TABLE t1;
|
||||
|
||||
# Wait till we reached the initial number of concurrent sessions
|
||||
--source include/wait_until_count_sessions.inc
|
||||
|
@@ -238,3 +238,12 @@ call p1();
|
||||
call p1();
|
||||
drop procedure p1;
|
||||
drop tables t1,t2,t3;
|
||||
|
||||
--echo #
|
||||
--echo # Bug#60085 crash in Item::save_in_field() with time data type
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1(a date, b int, unique(b), unique(a), key(b)) engine=innodb;
|
||||
INSERT INTO t1 VALUES ('2011-05-13', 0);
|
||||
SELECT * FROM t1 WHERE b < (SELECT CAST(a as date) FROM t1 GROUP BY a);
|
||||
DROP TABLE t1;
|
||||
|
@@ -266,6 +266,18 @@ SELECT * FROM t1 JOIN v1 ON addtime( t1.the_date, t1.the_time ) =
|
||||
DROP TABLE t1;
|
||||
DROP VIEW v1;
|
||||
|
||||
--echo #
|
||||
--echo # Bug#59685 crash in String::length with date types
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1(a DATE, b YEAR, KEY(a));
|
||||
INSERT INTO t1 VALUES ('2011-01-01',2011);
|
||||
|
||||
SELECT b = (SELECT CONVERT(a, DATE) FROM t1 GROUP BY a) FROM t1;
|
||||
SELECT b = CONVERT((SELECT CONVERT(a, DATE) FROM t1 GROUP BY a), DATE) FROM t1;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user