Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
dbe97bcc
Commit
dbe97bcc
authored
May 03, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarify the test case
parent
0759568b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
32 deletions
+28
-32
mysql-test/r/bootstrap.result
mysql-test/r/bootstrap.result
+11
-0
mysql-test/r/bug46261.result
mysql-test/r/bug46261.result
+0
-8
mysql-test/t/bootstrap.test
mysql-test/t/bootstrap.test
+17
-7
mysql-test/t/bug46261-master.opt
mysql-test/t/bug46261-master.opt
+0
-1
mysql-test/t/bug46261.test
mysql-test/t/bug46261.test
+0
-16
No files found.
mysql-test/r/bootstrap.result
View file @
dbe97bcc
...
...
@@ -15,3 +15,14 @@ SELECT 'bug' as '' FROM INFORMATION_SCHEMA.ENGINES WHERE engine='innodb'
and SUPPORT='YES';
End of 5.5 tests
flush tables;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
select * from mysql.plugin;
name dl
EXAMPLE ha_example.so
truncate table mysql.plugin;
mysql-test/r/bug46261.result
deleted
100644 → 0
View file @
0759568b
#
# Bug#46261 Plugins can be installed with --skip-grant-tables
#
INSTALL PLUGIN example SONAME 'ha_example.so';
ERROR HY000: The MariaDB server is running with the --skip-grant-tables option so it cannot execute this statement
UNINSTALL PLUGIN example;
ERROR HY000: The MariaDB server is running with the --skip-grant-tables option so it cannot execute this statement
End of 5.1 tests
mysql-test/t/bootstrap.test
View file @
dbe97bcc
...
...
@@ -64,18 +64,28 @@ SELECT 'bug' as '' FROM INFORMATION_SCHEMA.ENGINES WHERE engine='innodb'
--
source
include
/
not_windows_embedded
.
inc
--
source
include
/
have_example_plugin
.
inc
#
# Check that --bootstrap can
load/unload
plugins
# Check that --bootstrap can
install and uninstall
plugins
#
--
disable_query_log
let
$PLUGIN_DIR
=
`select @@plugin_dir`
;
eval
SELECT
"install plugin example soname '
$HA_EXAMPLE_SO
';"
INTO
OUTFILE
'$MYSQLTEST_VARDIR/tmp/install_plugin.sql'
;
--
enable_query_log
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
install_plugin
.
sql
install
soname
'ha_example'
;
uninstall
plugin
unusable
;
EOF
--
exec
$MYSQLD_BOOTSTRAP_CMD
--
plugin
-
dir
=
$PLUGIN_DIR
<
$MYSQLTEST_VARDIR
/
tmp
/
install_plugin
.
sql
>>
$MYSQLTEST_VARDIR
/
tmp
/
bootstrap
.
log
2
>&
1
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
install_plugin
.
sql
;
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
install_plugin
.
sql
#
# Check that installed plugins are *not* automatically loaded in --bootstrap
#
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
bootstrap_plugins
.
sql
use
test
;
create
table
t1
(
a
int
)
engine
=
example
;
drop
table
t1
;
EOF
--
exec
$MYSQLD_BOOTSTRAP_CMD
--
plugin
-
dir
=
$PLUGIN_DIR
<
$MYSQLTEST_VARDIR
/
tmp
/
bootstrap_plugins
.
sql
>>
$MYSQLTEST_VARDIR
/
tmp
/
bootstrap
.
log
2
>&
1
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
bootstrap_plugins
.
sql
;
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
bootstrap_plugins
.
sql
flush
tables
;
show
create
table
t1
;
drop
table
t1
;
--
replace_result
.
dll
.
so
select
*
from
mysql
.
plugin
;
truncate
table
mysql
.
plugin
;
mysql-test/t/bug46261-master.opt
deleted
100644 → 0
View file @
0759568b
--skip-grant-tables
mysql-test/t/bug46261.test
deleted
100644 → 0
View file @
0759568b
--
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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment