MDEV-10248 Cannot Remove Test Tables
While dropping the test database, use IF EXISTS to avoid bogus errors
This commit is contained in:
parent
4e19aa3864
commit
5cf49cdf92
@ -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";
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user