Browse Source
Merging with mysql-5.5.
Merging with mysql-5.5.
63 changed files with 958 additions and 294 deletions
-
2README
-
2client/mysql.cc
-
8client/readline.cc
-
2include/my_pthread.h
-
28mysql-test/collections/default.daily
-
5mysql-test/collections/default.experimental
-
14mysql-test/collections/default.weekly
-
2mysql-test/include/mysqlhotcopy.inc
-
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/r/innodb-autoinc-56228.result
-
1mysql-test/suite/innodb/t/innodb-autoinc-56228-master.opt
-
33mysql-test/suite/innodb/t/innodb-autoinc-56228.test
-
15mysql-test/suite/rpl/r/rpl_loaddatalocal.result
-
26mysql-test/suite/rpl/t/rpl_loaddatalocal.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
-
42mysql-test/valgrind.supp
-
2mysys/my_fopen.c
-
2mysys/my_getsystime.c
-
2sql/handler.cc
-
13sql/item.h
-
9sql/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
-
156storage/innobase/btr/btr0cur.c
-
30storage/innobase/buf/buf0buf.c
-
10storage/innobase/dict/dict0dict.c
-
2storage/innobase/dict/dict0load.c
-
8storage/innobase/fsp/fsp0fsp.c
-
11storage/innobase/handler/ha_innodb.cc
-
11storage/innobase/handler/i_s.cc
-
8storage/innobase/ibuf/ibuf0ibuf.c
-
42storage/innobase/include/btr0cur.h
-
8storage/innobase/include/buf0buf.h
-
26storage/innobase/include/row0upd.h
-
19storage/innobase/include/univ.i
-
19storage/innobase/include/ut0vec.h
-
29storage/innobase/include/ut0vec.ic
-
78storage/innobase/lock/lock0lock.c
-
2storage/innobase/row/row0ins.c
-
4storage/innobase/row/row0merge.c
-
14storage/innobase/row/row0mysql.c
-
68storage/innobase/row/row0purge.c
-
35storage/innobase/row/row0umod.c
-
43storage/innobase/row/row0upd.c
-
13storage/innobase/srv/srv0start.c
-
4storage/innobase/trx/trx0roll.c
@ -1,15 +1,15 @@ |
|||
|
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --report-features |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=n_mix --vardir=var-n_mix --mysqld=--binlog-format=mixed |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=row --vardir=var-row --mysqld=--binlog-format=row |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=ps_row --vardir=var-ps_row --mysqld=--binlog-format=row --ps-protocol |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=embedded --vardir=var-embedded --embedded |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=ps --vardir=var-ps --ps-protocol |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs_1 --vardir=var-funcs_1 --suite=funcs_1 |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=ps_funcs1 --vardir=var-ps_funcs_1 --suite=funcs_1 --ps-protocol |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs2 --vardir=var-funcs2 --suite=funcs_2 |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=partitions --vardir=var-parts --suite=parts |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=stress --vardir=var-stress --suite=stress |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=jp --vardir=var-jp --suite=jp |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist --vardir=var-nist --suite=nist |
|||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist+ps --vardir=var-ps_nist --suite=nist --ps-protocol |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --report-features |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=n_mix --vardir=var-n_mix --mysqld=--binlog-format=mixed |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=row --vardir=var-row --mysqld=--binlog-format=row |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=ps_row --vardir=var-ps_row --mysqld=--binlog-format=row --ps-protocol |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=embedded --vardir=var-embedded --embedded |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=ps --vardir=var-ps --ps-protocol |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=funcs_1 --vardir=var-funcs_1 --suite=funcs_1 |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=ps_funcs1 --vardir=var-ps_funcs_1 --suite=funcs_1 --ps-protocol |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=funcs2 --vardir=var-funcs2 --suite=funcs_2 |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=partitions --vardir=var-parts --suite=parts |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=stress --vardir=var-stress --suite=stress |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=jp --vardir=var-jp --suite=jp |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=nist --vardir=var-nist --suite=nist |
|||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=nist+ps --vardir=var-ps_nist --suite=nist --ps-protocol |
@ -1,7 +1,7 @@ |
|||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=big-tests --experimental=collections/default.experimental --vardir=var-big-tests --big-test --testcase-timeout=60 --suite-timeout=600 main.alter_table-big main.archive-big main.count_distinct3 main.create-big main.events_stress main.events_time_zone main.information_schema-big main.log_tables-big main.merge-big main.mysqlbinlog_row_big main.read_many_rows_innodb main.ssl-big main.sum_distinct-big main.type_newdecimal-big main.variables-big parts.part_supported_sql_func_innodb parts.partition_alter1_1_2_innodb parts.partition_alter1_2_innodb parts.partition_alter2_1_1_innodb parts.partition_alter2_1_2_innodb parts.partition_alter2_2_2_innodb parts.partition_alter4_innodb funcs_1.myisam_views-big |
|||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=eits-tests-myisam-engine --experimental=collections/default.experimental --vardir=var-stmt-eits-tests-myisam-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=myisam |
|||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=eits-rpl-binlog-row-tests-myisam-engine --experimental=collections/default.experimental --vardir=var-binlog-row-eits-tests-myisam-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=myisam --do-test=rpl --mysqld=--binlog-format=row |
|||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=eits-rpl-binlog-mixed-tests-myisam-engine --experimental=collections/default.experimental --vardir=var-binlog-mixed-eits-tests-myisam-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=myisam --do-test=rpl --mysqld=--binlog-format=mixed |
|||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=eits-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-stmt-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb |
|||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=eits-rpl-binlog-row-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-binlog-row-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=row |
|||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=eits-rpl-binlog-mixed-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-binlog-mixed-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=mixed |
|||
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=big-tests --experimental=collections/default.experimental --vardir=var-big-tests --big-test --testcase-timeout=60 --suite-timeout=600 main.alter_table-big main.archive-big main.count_distinct3 main.create-big main.events_stress main.events_time_zone main.information_schema-big main.log_tables-big main.merge-big main.mysqlbinlog_row_big main.read_many_rows_innodb main.ssl-big main.sum_distinct-big main.type_newdecimal-big main.variables-big parts.part_supported_sql_func_innodb parts.partition_alter1_1_2_innodb parts.partition_alter1_2_innodb parts.partition_alter2_1_1_innodb parts.partition_alter2_1_2_innodb parts.partition_alter2_2_2_innodb parts.partition_alter4_innodb funcs_1.myisam_views-big |
|||
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-tests-myisam-engine --experimental=collections/default.experimental --vardir=var-stmt-eits-tests-myisam-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=myisam |
|||
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-row-tests-myisam-engine --experimental=collections/default.experimental --vardir=var-binlog-row-eits-tests-myisam-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=myisam --do-test=rpl --mysqld=--binlog-format=row |
|||
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-mixed-tests-myisam-engine --experimental=collections/default.experimental --vardir=var-binlog-mixed-eits-tests-myisam-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=myisam --do-test=rpl --mysqld=--binlog-format=mixed |
|||
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-stmt-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb |
|||
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-row-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-binlog-row-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=row |
|||
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-mixed-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-binlog-mixed-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=mixed |
@ -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 test.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,33 @@ |
|||
-- source include/have_innodb.inc |
|||
|
|||
## |
|||
# 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; |
@ -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