committed by
Karen Langford
41 changed files with 581 additions and 85 deletions
-
2README
-
2include/my_pthread.h
-
2include/my_sys.h
-
10mysql-test/mysql-test-run.pl
-
74mysql-test/r/grant.result
-
14mysql-test/r/type_year.result
-
6mysql-test/r/user_var.result
-
2mysql-test/suite/binlog/r/binlog_unsafe.result
-
2mysql-test/suite/binlog/t/binlog_unsafe.test
-
30mysql-test/suite/innodb_plugin/r/innodb-autoinc-56228.result
-
1mysql-test/suite/innodb_plugin/t/innodb-autoinc-56228-master.opt
-
42mysql-test/suite/innodb_plugin/t/innodb-autoinc-56228.test
-
6mysql-test/suite/sys_vars/r/secure_file_priv2.result
-
1mysql-test/suite/sys_vars/t/secure_file_priv2-master.opt
-
23mysql-test/suite/sys_vars/t/secure_file_priv2.test
-
101mysql-test/t/grant.test
-
10mysql-test/t/type_year.test
-
12mysql-test/t/user_var.test
-
2mysys/my_fopen.c
-
2mysys/my_getsystime.c
-
2sql/handler.cc
-
13sql/item.h
-
11sql/item_cmpfunc.cc
-
2sql/item_func.cc
-
2sql/item_geofunc.h
-
2sql/log.cc
-
2sql/net_serv.cc
-
14sql/sql_base.cc
-
85sql/sql_load.cc
-
2sql/sql_select.cc
-
2sql/sql_show.cc
-
2sql/sql_view.cc
-
10storage/innodb_plugin/ChangeLog
-
10storage/innodb_plugin/dict/dict0dict.c
-
10storage/innodb_plugin/handler/ha_innodb.cc
-
11storage/innodb_plugin/handler/i_s.cc
-
12storage/innodb_plugin/include/univ.i
-
19storage/innodb_plugin/include/ut0vec.h
-
29storage/innodb_plugin/include/ut0vec.ic
-
78storage/innodb_plugin/lock/lock0lock.c
-
4storage/innodb_plugin/row/row0merge.c
@ -0,0 +1,30 @@ |
|||
DROP TABLE IF EXISTS t1_56228; |
|||
Warnings: |
|||
Note 1051 Unknown table 't1_56228' |
|||
DROP TABLE IF EXISTS t2_56228; |
|||
Warnings: |
|||
Note 1051 Unknown table 't2_56228' |
|||
DROP FUNCTION IF EXISTS bug56228; |
|||
Warnings: |
|||
Note 1305 FUNCTION bug56228 does not exist |
|||
CREATE TEMPORARY TABLE t1_56228( |
|||
c1 iNT AUTO_INCREMENT PRIMARY KEY) ENGINE=InnoDB; |
|||
CREATE TEMPORARY TABLE t2_56228( |
|||
c1 iNT AUTO_INCREMENT PRIMARY KEY) ENGINE=InnoDB; |
|||
CREATE FUNCTION bug56228() RETURNS INT DETERMINISTIC |
|||
BEGIN |
|||
INSERT INTO t1_56228 VALUES(NULL); |
|||
INSERT INTO t2_56228 VALUES(NULL); |
|||
INSERT INTO t1_56228 VALUES(NULL); |
|||
INSERT INTO t2_56228 VALUES(NULL); |
|||
DROP TEMPORARY TABLE t1_56228; |
|||
RETURN 42; |
|||
END // |
|||
SELECT bug56228(); |
|||
bug56228() |
|||
42 |
|||
DROP FUNCTION bug56228; |
|||
DROP TEMPORARY TABLE t2_56228; |
|||
DROP TEMPORARY TABLE IF EXISTS t1_56228; |
|||
Warnings: |
|||
Note 1051 Unknown table 't1_56228' |
|||
@ -0,0 +1 @@ |
|||
--innodb_autoinc_lock_mode=0 |
|||
@ -0,0 +1,42 @@ |
|||
-- source include/have_innodb_plugin.inc |
|||
|
|||
let $innodb_file_format_check_orig=`select @@innodb_file_format_check`; |
|||
|
|||
## |
|||
# Bug #56228: dropping tables from within an active statement crashes server |
|||
# |
|||
DROP TABLE IF EXISTS t1_56228; |
|||
DROP TABLE IF EXISTS t2_56228; |
|||
DROP FUNCTION IF EXISTS bug56228; |
|||
|
|||
CREATE TEMPORARY TABLE t1_56228( |
|||
c1 iNT AUTO_INCREMENT PRIMARY KEY) ENGINE=InnoDB; |
|||
CREATE TEMPORARY TABLE t2_56228( |
|||
c1 iNT AUTO_INCREMENT PRIMARY KEY) ENGINE=InnoDB; |
|||
|
|||
DELIMITER //; |
|||
|
|||
CREATE FUNCTION bug56228() RETURNS INT DETERMINISTIC |
|||
BEGIN |
|||
INSERT INTO t1_56228 VALUES(NULL); |
|||
INSERT INTO t2_56228 VALUES(NULL); |
|||
INSERT INTO t1_56228 VALUES(NULL); |
|||
INSERT INTO t2_56228 VALUES(NULL); |
|||
DROP TEMPORARY TABLE t1_56228; |
|||
RETURN 42; |
|||
END // |
|||
|
|||
DELIMITER ;// |
|||
|
|||
SELECT bug56228(); |
|||
|
|||
DROP FUNCTION bug56228; |
|||
DROP TEMPORARY TABLE t2_56228; |
|||
DROP TEMPORARY TABLE IF EXISTS t1_56228; |
|||
|
|||
# |
|||
# restore environment to the state it was before this test execution |
|||
# |
|||
|
|||
-- disable_query_log |
|||
eval set global innodb_file_format_check=$innodb_file_format_check_orig; |
|||
@ -0,0 +1,6 @@ |
|||
CREATE TABLE t1 (c1 INT); |
|||
LOAD DATA INFILE "t1.MYI" into table t1; |
|||
ERROR HY000: The MySQL server is running with the --secure-file-priv option so it cannot execute this statement |
|||
LOAD DATA INFILE "/test" into table t1; |
|||
ERROR HY000: The MySQL server is running with the --secure-file-priv option so it cannot execute this statement |
|||
DROP TABLE t1; |
|||
@ -0,0 +1 @@ |
|||
--secure_file_priv=$SECURE_LOAD_PATH |
|||
@ -0,0 +1,23 @@ |
|||
# |
|||
# Bug58747 breaks secure_file_priv+not secure yet+still accesses other folders |
|||
# |
|||
CREATE TABLE t1 (c1 INT); |
|||
# |
|||
# Before the patch this statement failed with |
|||
# Linux: |
|||
# -> errno 13: 'Can't get stat of ' |
|||
# Windows: |
|||
# -> Warning 1366 Incorrect integer value: '■■☺' for |
|||
# -> column 'c1' at row 1 |
|||
# Now it should consistently fail with ER_OPTION_PREVENTS_STATEMENT |
|||
# on all platforms. |
|||
--error ER_OPTION_PREVENTS_STATEMENT |
|||
LOAD DATA INFILE "t1.MYI" into table t1; |
|||
|
|||
# |
|||
# The following test makes the assuption that /test isn't a valid path in any |
|||
# operating system running the test suite. |
|||
--error ER_OPTION_PREVENTS_STATEMENT |
|||
LOAD DATA INFILE "/test" into table t1; |
|||
|
|||
DROP TABLE t1; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue