mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
Merge mysql.com:/usr/local/home/marty/MySQL/mysql-4.1
into mysql.com:/usr/local/home/marty/MySQL/mysql-5.0
This commit is contained in:
commit
2fd313de2f
1 changed files with 14 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2000-2003 MySQL AB
|
||||
/* Copyright (C) 2000-2003 MySQL AB
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -4479,6 +4479,7 @@ int ndbcluster_drop_database(const char *path)
|
|||
uint i;
|
||||
char *tabname;
|
||||
List<char> drop_list;
|
||||
int ret= 0;
|
||||
ha_ndbcluster::set_dbname(path, (char *)&dbname);
|
||||
DBUG_PRINT("enter", ("db: %s", dbname));
|
||||
|
||||
|
@ -4505,10 +4506,18 @@ int ndbcluster_drop_database(const char *path)
|
|||
ndb->setDatabaseName(dbname);
|
||||
List_iterator_fast<char> it(drop_list);
|
||||
while ((tabname=it++))
|
||||
if (dict->dropTable(tabname))
|
||||
ERR_RETURN(dict->getNdbError());
|
||||
|
||||
DBUG_RETURN(0);
|
||||
{
|
||||
if (!dict->dropTable(tabname))
|
||||
{
|
||||
const NdbError err= dict->getNdbError();
|
||||
if (err.code != 709)
|
||||
{
|
||||
ERR_PRINT(err);
|
||||
ret= ndb_to_mysql_error(&err);
|
||||
}
|
||||
}
|
||||
}
|
||||
DBUG_RETURN(ret);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue