Browse Source
Manual merge of mysql-5.1-bugteam to mysql-trunk-merge.
Manual merge of mysql-5.1-bugteam to mysql-trunk-merge.
Conflicts: Text conflict in configure.in Text conflict in dbug/dbug.c Text conflict in mysql-test/r/ps.result Text conflict in mysql-test/t/ps.test Text conflict in sql/CMakeLists.txt Text conflict in sql/ha_ndbcluster.cc Text conflict in sql/mysqld.cc Text conflict in sql/sql_plugin.cc Text conflict in sql/sql_table.ccpull/374/head
40 changed files with 489 additions and 74 deletions
-
17configure.in
-
11dbug/dbug.c
-
39include/mysql/plugin.h
-
3include/mysql/plugin.h.pp
-
8mysql-test/r/bug46261.result
-
23mysql-test/r/error_simulation.result
-
28mysql-test/r/innodb_mysql.result
-
20mysql-test/r/join.result
-
4mysql-test/r/loaddata.result
-
13mysql-test/r/ps.result
-
9mysql-test/r/row.result
-
13mysql-test/r/variables_debug.result
-
14mysql-test/suite/rpl/r/rpl_do_grant.result
-
29mysql-test/suite/rpl/t/rpl_do_grant.test
-
22mysql-test/suite/sys_vars/r/secure_file_priv.result
-
1mysql-test/suite/sys_vars/t/secure_file_priv-master.opt
-
21mysql-test/suite/sys_vars/t/secure_file_priv.test
-
1mysql-test/t/bug46261-master.opt
-
16mysql-test/t/bug46261.test
-
16mysql-test/t/error_simulation.test
-
30mysql-test/t/innodb_mysql.test
-
22mysql-test/t/join.test
-
14mysql-test/t/ps.test
-
11mysql-test/t/row.test
-
13mysql-test/t/variables_debug.test
-
8scripts/mysqlhotcopy.sh
-
4sql/CMakeLists.txt
-
12sql/field.cc
-
12sql/handler.cc
-
2sql/handler.h
-
14sql/item_cmpfunc.h
-
21sql/mysqld.cc
-
10sql/sql_acl.cc
-
31sql/sql_class.cc
-
6sql/sql_class.h
-
4sql/sql_load.cc
-
10sql/sql_parse.cc
-
12sql/sql_plugin.cc
-
9sql/sql_table.cc
-
10sql/sql_update.cc
@ -0,0 +1,8 @@ |
|||
# |
|||
# Bug#46261 Plugins can be installed with --skip-grant-tables |
|||
# |
|||
INSTALL PLUGIN example SONAME 'ha_example.so'; |
|||
ERROR HY000: The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement |
|||
UNINSTALL PLUGIN example; |
|||
ERROR HY000: The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement |
|||
End of 5.1 tests |
|||
@ -0,0 +1,22 @@ |
|||
# |
|||
# Bug50373 --secure-file-priv="" |
|||
# |
|||
CREATE TABLE t1 (c1 VARCHAR(50)); |
|||
INSERT INTO t1 VALUES ("one"),("two"),("three"),("four"),("five"); |
|||
SHOW VARIABLES LIKE 'secure_file_priv'; |
|||
Variable_name Value |
|||
secure_file_priv |
|||
c1 |
|||
one |
|||
two |
|||
three |
|||
four |
|||
five |
|||
loaded_file |
|||
one |
|||
two |
|||
three |
|||
four |
|||
five |
|||
|
|||
DROP TABLE t1; |
|||
@ -0,0 +1 @@ |
|||
--secure_file_priv='' |
|||
@ -0,0 +1,21 @@ |
|||
--echo # |
|||
--echo # Bug50373 --secure-file-priv="" |
|||
--echo # |
|||
CREATE TABLE t1 (c1 VARCHAR(50)); |
|||
INSERT INTO t1 VALUES ("one"),("two"),("three"),("four"),("five"); |
|||
SHOW VARIABLES LIKE 'secure_file_priv'; |
|||
--disable_query_log |
|||
# Atempt to create a file where we normally aren't allowed to create one. |
|||
# Doing this in a portable manner is difficult but we should be able to |
|||
# count on the depth of the directory hierarchy used. Three steps up from |
|||
# the datadir is the 'mysql_test' directory. |
|||
--let $PROTECTED_FILE=`SELECT concat(@@datadir,'/../../../bug50373.txt')`; |
|||
--eval SELECT * FROM t1 INTO OUTFILE '$PROTECTED_FILE'; |
|||
DELETE FROM t1; |
|||
--eval LOAD DATA INFILE '$PROTECTED_FILE' INTO TABLE t1; |
|||
SELECT * FROM t1; |
|||
--eval SELECT load_file('$PROTECTED_FILE') AS loaded_file; |
|||
--enable_query_log |
|||
remove_file $PROTECTED_FILE; |
|||
DROP TABLE t1; |
|||
|
|||
@ -0,0 +1 @@ |
|||
--skip-grant-tables $EXAMPLE_PLUGIN_OPT |
|||
@ -0,0 +1,16 @@ |
|||
--source include/not_embedded.inc |
|||
--source include/have_example_plugin.inc |
|||
|
|||
--echo # |
|||
--echo # Bug#46261 Plugins can be installed with --skip-grant-tables |
|||
--echo # |
|||
|
|||
--replace_regex /\.dll/.so/ |
|||
--error ER_OPTION_PREVENTS_STATEMENT |
|||
eval INSTALL PLUGIN example SONAME $HA_EXAMPLE_SO; |
|||
|
|||
--replace_regex /\.dll/.so/ |
|||
--error ER_OPTION_PREVENTS_STATEMENT |
|||
eval UNINSTALL PLUGIN example; |
|||
|
|||
--echo End of 5.1 tests |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue