remove sql that used inexisting table

add missing namespace
This commit is contained in:
Nicolas Le Goff
2012-08-20 13:53:19 +02:00
parent 71b3e65f1a
commit 1e80ec1cb0
2 changed files with 15 additions and 8 deletions

View File

@@ -962,20 +962,26 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
$stmt->execute(array(':usr_id' => $this->get_id()));
$stmt->closeCursor();
$sql = 'DELETE FROM usrlist WHERE usr_id = :usr_id';
$stmt = $this->appbox->get_connection()->prepare($sql);
$stmt->execute(array(':usr_id' => $this->get_id()));
$stmt->closeCursor();
/**
* @todo does usrlist not exists anymore ?
*/
// $sql = 'DELETE FROM usrlist WHERE usr_id = :usr_id';
// $stmt = $this->appbox->get_connection()->prepare($sql);
// $stmt->execute(array(':usr_id' => $this->get_id()));
// $stmt->closeCursor();
$sql = 'DELETE FROM usr_settings WHERE usr_id = :usr_id';
$stmt = $this->appbox->get_connection()->prepare($sql);
$stmt->execute(array(':usr_id' => $this->get_id()));
$stmt->closeCursor();
$sql = 'DELETE FROM usrlistusers WHERE usr_id = :usr_id';
$stmt = $this->appbox->get_connection()->prepare($sql);
$stmt->execute(array(':usr_id' => $this->get_id()));
$stmt->closeCursor();
/**
* @todo table usrlistusers does not exists anymore ?
*/
// $sql = 'DELETE FROM usrlistusers WHERE usr_id = :usr_id';
// $stmt = $this->appbox->get_connection()->prepare($sql);
// $stmt->execute(array(':usr_id' => $this->get_id()));
// $stmt->closeCursor();
$sql = 'DELETE FROM ssel WHERE usr_id = :usr_id';
$stmt = $this->appbox->get_connection()->prepare($sql);