mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
merge mysql-5.5->mysql-5.5-security
This commit is contained in:
@ -665,6 +665,10 @@ The following options may be given as the first argument:
|
||||
Log slow queries to given log file. Defaults logging to
|
||||
hostname-slow.log. Must be enabled to activate other slow
|
||||
log options
|
||||
--slow-start-timeout=#
|
||||
Maximum number of milliseconds that the service control
|
||||
manager should wait before trying to kill the windows
|
||||
service during startup(Default: 15000).
|
||||
--socket=name Socket file to use for connection
|
||||
--sort-buffer-size=#
|
||||
Each thread that needs to do a sort allocates a buffer of
|
||||
@ -938,6 +942,7 @@ slave-transaction-retries 10
|
||||
slave-type-conversions
|
||||
slow-launch-time 2
|
||||
slow-query-log FALSE
|
||||
slow-start-timeout 15000
|
||||
sort-buffer-size 2097152
|
||||
sporadic-binlog-dump-fail FALSE
|
||||
sql-mode
|
||||
|
@ -4970,3 +4970,21 @@ avg(distinct(t1.a))
|
||||
0
|
||||
DROP TABLE t1;
|
||||
# End of test BUG#57203
|
||||
#
|
||||
# Bug#63020: Function "format"'s 'locale' argument is not considered
|
||||
# when creating a "view'
|
||||
#
|
||||
CREATE TABLE t1 (f1 DECIMAL(10,2));
|
||||
INSERT INTO t1 VALUES (11.67),(17865.3),(12345678.92);
|
||||
CREATE VIEW view_t1 AS SELECT FORMAT(f1,1,'sk_SK') AS f1 FROM t1;
|
||||
SHOW CREATE VIEW view_t1;
|
||||
View Create View character_set_client collation_connection
|
||||
view_t1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_t1` AS select format(`t1`.`f1`,1,'sk_SK') AS `f1` from `t1` latin1 latin1_swedish_ci
|
||||
SELECT * FROM view_t1;
|
||||
f1
|
||||
11,7
|
||||
17 865,3
|
||||
12 345 678,9
|
||||
DROP TABLE t1;
|
||||
DROP VIEW view_t1;
|
||||
# End of test BUG#63020
|
||||
|
@ -3191,3 +3191,14 @@ Handler_update 1
|
||||
Variable_name Value
|
||||
Handler_delete 1
|
||||
DROP TABLE bug58912;
|
||||
create table t1 (f1 integer primary key) engine=innodb;
|
||||
flush status;
|
||||
show status like "handler_read_key";
|
||||
Variable_name Value
|
||||
Handler_read_key 0
|
||||
select f1 from t1;
|
||||
f1
|
||||
show status like "handler_read_key";
|
||||
Variable_name Value
|
||||
Handler_read_key 1
|
||||
drop table t1;
|
||||
|
@ -2578,6 +2578,17 @@ SET GLOBAL innodb_thread_concurrency = @innodb_thread_concurrency_orig;
|
||||
# Clean up after the Bug#55284/Bug#58912 test case.
|
||||
DROP TABLE bug58912;
|
||||
|
||||
#
|
||||
# Test fix for bug 13117023. InnoDB increments HA_READ_KEY_COUNT (aka
|
||||
# HANDLER_READ_KEY) when it should not.
|
||||
#
|
||||
create table t1 (f1 integer primary key) engine=innodb;
|
||||
flush status;
|
||||
show status like "handler_read_key";
|
||||
select f1 from t1;
|
||||
show status like "handler_read_key";
|
||||
drop table t1;
|
||||
|
||||
#######################################################################
|
||||
# #
|
||||
# Please, DO NOT TOUCH this file as well as the innodb.result file. #
|
||||
|
@ -17,6 +17,7 @@
|
||||
# working when expected.
|
||||
|
||||
--source include/master-slave.inc
|
||||
--source include/have_binlog_format_mixed.inc
|
||||
|
||||
connection slave;
|
||||
STOP SLAVE;
|
||||
|
@ -18,6 +18,7 @@
|
||||
# executing events this time
|
||||
|
||||
source include/master-slave.inc;
|
||||
source include/have_binlog_format_mixed.inc;
|
||||
|
||||
connection slave;
|
||||
|
||||
|
@ -4236,3 +4236,20 @@ GROUP BY t2.a ORDER BY t1.a;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo # End of test BUG#57203
|
||||
|
||||
--echo #
|
||||
--echo # Bug#63020: Function "format"'s 'locale' argument is not considered
|
||||
--echo # when creating a "view'
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (f1 DECIMAL(10,2));
|
||||
INSERT INTO t1 VALUES (11.67),(17865.3),(12345678.92);
|
||||
CREATE VIEW view_t1 AS SELECT FORMAT(f1,1,'sk_SK') AS f1 FROM t1;
|
||||
SHOW CREATE VIEW view_t1;
|
||||
SELECT * FROM view_t1;
|
||||
|
||||
DROP TABLE t1;
|
||||
DROP VIEW view_t1;
|
||||
|
||||
--echo # End of test BUG#63020
|
||||
|
||||
|
Reference in New Issue
Block a user