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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
5cf49cdf
Commit
5cf49cdf
authored
Jul 15, 2016
by
Elena Stepanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-10248 Cannot Remove Test Tables
While dropping the test database, use IF EXISTS to avoid bogus errors
parent
4e19aa38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
scripts/mysql_secure_installation.pl.in
scripts/mysql_secure_installation.pl.in
+1
-1
scripts/mysql_secure_installation.sh
scripts/mysql_secure_installation.sh
+1
-1
No files found.
scripts/mysql_secure_installation.pl.in
View file @
5cf49cdf
...
...
@@ -217,7 +217,7 @@ sub remove_remote_root {
sub
remove_test_database
{
print
"
- Dropping test database...
\n
";
if
(
do_query
("
DROP DATABASE test;
"))
{
if
(
do_query
("
DROP DATABASE
IF EXISTS
test;
"))
{
print
"
... Success!
\n
";
}
else
{
print
"
... Failed! Not critical, keep moving...
\n
";
...
...
scripts/mysql_secure_installation.sh
View file @
5cf49cdf
...
...
@@ -324,7 +324,7 @@ remove_remote_root() {
remove_test_database
()
{
echo
" - Dropping test database..."
do_query
"DROP DATABASE test;"
do_query
"DROP DATABASE
IF EXISTS
test;"
if
[
$?
-eq
0
]
;
then
echo
" ... Success!"
else
...
...
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