Repository navigation
backport home storage to stable5 - #5630
Conversation
|
👍 |
There was a problem hiding this comment.
in case of error this will fail as $result is an instance of MDB2_Error
There was a problem hiding this comment.
Can we postpone that to another PR? Because I would rather fix that for all occurences in this file by throwing a correct DatabaseException when an error has been returned. The exception however want's the plain sql query as the second parameter, so I have to remember that as a variable. Or I backport executeAudited from master (which is no longer needed there because doctrine will throw exceptions on all occasions). ... I guess I'll backport executeAudited().
"Thomas Müller" [email protected] schrieb:
@@ -67,6 +67,19 @@ public function getNumericStorageId() {
return $this->numericId;
}
- public static function storageExists($storageId) {
if (strlen($storageId) > 64) {$storageId = md5($storageId);}$query = \OC_DB::prepare('SELECT `numeric_id` FROM*PREFIX*storagesWHEREid= ?');$result = $query->execute(array($storageId));if ($row = $result->fetchRow()) {in case of error this will fail as $result is an instance of MDB2_Error
Reply to this email directly or view it on GitHub:
https://github.com/owncloud/core/pull/5630/files#r7316104
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
|
Test passed. |
|
tested 👍 |
backport home storage to stable5
backport of #5591 for stable5 necessary for user backends that implement getHome(). fixes #5045
@icewind1991 I tried to backport this because I need it for a customer migration. please review
@karlitschek @DeepDiver1975 @VicDeo please review