1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

DROP DATABASE now returns (affected_rows) number of tables dropped

This commit is contained in:
serg@serg.mylan
2004-03-19 16:43:03 +01:00
parent 6a636a4d07
commit 13946359c6
2 changed files with 1 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ select * from mysqltest.mysqltest;
n n
4 4
drop database if exists mysqltest; drop database if exists mysqltest;
affected rows: 4 affected rows: 1
create database mysqltest; create database mysqltest;
drop database mysqltest; drop database mysqltest;
flush tables with read lock; flush tables with read lock;

View File

@@ -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) if (find_type(extension, &known_extentions,1+2) <= 0)
found_other_files++; found_other_files++;
else
deleted++;
continue; continue;
} }
if (db && !my_strcasecmp(&my_charset_latin1, 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; goto err;
} }
deleted++;
} }
} }
if (thd->killed || if (thd->killed ||