99: delete still not working properly

https://github.com/easy-wi/developer/issues/99
This commit is contained in:
Ulrich Block 2013-10-05 18:46:01 +02:00
parent e0d923f961
commit 11e580f8c0

View File

@ -180,6 +180,9 @@ class ExternalSQL {
$query = $this->remotesql->prepare("DROP USER ?@''");
$query->execute(array($dbname));
$query = $this->remotesql->prepare("DROP USER ?@'localhost'");
$query->execute(array($dbname));
$this->remotesql->exec("FLUSH PRIVILEGES; FLUSH HOSTS;");
} catch (PDOException $error) {
@ -200,6 +203,9 @@ class ExternalSQL {
$query = $this->remotesql->prepare("DROP USER ?@''");
$query->execute(array($username));
$query = $this->remotesql->prepare("DROP USER ?@'localhost'");
$query->execute(array($username));
$this->remotesql->exec("FLUSH PRIVILEGES; FLUSH HOSTS;");
} catch (PDOException $error) {