Add missing quotes for Oracle

This commit is contained in:
Vincent Petry 2014-06-26 19:24:46 +02:00
parent 67d0a3c15e
commit 7ee90ddd59
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class TestRepairMimeTypes extends PHPUnit_Framework_TestCase {
public function tearDown() { public function tearDown() {
$this->storage->getCache()->clear(); $this->storage->getCache()->clear();
$sql = 'DELETE FROM `*PREFIX*storages` WHERE id = ?'; $sql = 'DELETE FROM `*PREFIX*storages` WHERE `id` = ?';
\OC_DB::executeAudited($sql, array($this->storage->getId())); \OC_DB::executeAudited($sql, array($this->storage->getId()));
$this->clearMimeTypes(); $this->clearMimeTypes();
@ -66,7 +66,7 @@ class TestRepairMimeTypes extends PHPUnit_Framework_TestCase {
* if it does not exist. * if it does not exist.
*/ */
private function getMimeTypeIdFromDB($mimeType) { private function getMimeTypeIdFromDB($mimeType) {
$sql = 'SELECT `id` FROM `*PREFIX*mimetypes` WHERE mimetype = ?'; $sql = 'SELECT `id` FROM `*PREFIX*mimetypes` WHERE `mimetype` = ?';
$results = \OC_DB::executeAudited($sql, array($mimeType)); $results = \OC_DB::executeAudited($sql, array($mimeType));
$result = $results->fetchOne(); $result = $results->fetchOne();
if ($result) { if ($result) {