mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
58bb0769bd
- Fixed some issues with partitions and connection_string, which also fixed lp:716890 "Pre- and post-recovery crash in Aria" - Fixed wrong assert in Aria Now need to merge with latest xtradb before pushing sql/ha_partition.cc: Ensure that m_ordered_rec_buffer is not freed before close. sql/mysqld.cc: Changed to use opt_stack_trace instead of opt_pstack. Removed references to pstack sql/partition_element.h: Ensure that connect_string is initialized storage/maria/ma_key_recover.c: Fixed wrong assert
32 lines
894 B
Text
32 lines
894 B
Text
--source include/not_embedded.inc
|
|
--source include/have_example_plugin.inc
|
|
|
|
--echo #
|
|
--echo # Bug#51770: UNINSTALL PLUGIN requires no privileges
|
|
--echo #
|
|
|
|
GRANT INSERT ON mysql.plugin TO bug51770@localhost;
|
|
connect(con1,localhost,bug51770,,);
|
|
--replace_regex /\.dll/.so/
|
|
eval INSTALL PLUGIN example SONAME '$HA_EXAMPLE_SO';
|
|
--error ER_TABLEACCESS_DENIED_ERROR
|
|
UNINSTALL PLUGIN example;
|
|
connection default;
|
|
GRANT DELETE ON mysql.plugin TO bug51770@localhost;
|
|
connection con1;
|
|
UNINSTALL PLUGIN example;
|
|
disconnect con1;
|
|
connection default;
|
|
DROP USER bug51770@localhost;
|
|
|
|
#
|
|
# BUG#58246: INSTALL PLUGIN not secure & crashable
|
|
#
|
|
# The bug consisted of not recognizing / on Windows, so checking / on
|
|
# all platforms should cover this case.
|
|
|
|
let $path = `select CONCAT_WS('/', '..', '$HA_EXAMPLE_SO')`;
|
|
--replace_regex /\.dll/.so/
|
|
--error ER_UDF_NO_PATHS
|
|
eval INSTALL PLUGIN example SONAME '$path';
|
|
|