Commit 13946359 authored by serg@serg.mylan's avatar serg@serg.mylan

DROP DATABASE now returns (affected_rows) number of tables dropped

parent 6a636a4d
......@@ -21,7 +21,7 @@ select * from mysqltest.mysqltest;
n
4
drop database if exists mysqltest;
affected rows: 4
affected rows: 1
create database mysqltest;
drop database mysqltest;
flush tables with read lock;
......
......@@ -502,8 +502,6 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
{
if (find_type(extension, &known_extentions,1+2) <= 0)
found_other_files++;
else
deleted++;
continue;
}
if (db && !my_strcasecmp(&my_charset_latin1,
......@@ -530,7 +528,6 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
{
goto err;
}
deleted++;
}
}
if (thd->killed ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment