summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-06-26 19:24:46 +0200
committerVincent Petry <pvince81@owncloud.com>2014-06-26 19:25:37 +0200
commit7ee90ddd595ab51d76bd95809dbb1bd997096e10 (patch)
tree312b31ac86d49194b5043fe90275f7cd201698b3 /tests
parent67d0a3c15e52d865ebb5420e98b177a1bb9e42ba (diff)
downloadnextcloud-server-7ee90ddd595ab51d76bd95809dbb1bd997096e10.tar.gz
nextcloud-server-7ee90ddd595ab51d76bd95809dbb1bd997096e10.zip
Add missing quotes for Oracle
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/repair/repairmimetypes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/repair/repairmimetypes.php b/tests/lib/repair/repairmimetypes.php
index 5c0a36d469c..3ed19bd55bb 100644
--- a/tests/lib/repair/repairmimetypes.php
+++ b/tests/lib/repair/repairmimetypes.php
@@ -26,7 +26,7 @@ class TestRepairMimeTypes extends PHPUnit_Framework_TestCase {
public function tearDown() {
$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()));
$this->clearMimeTypes();
@@ -66,7 +66,7 @@ class TestRepairMimeTypes extends PHPUnit_Framework_TestCase {
* if it does not exist.
*/
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));
$result = $results->fetchOne();
if ($result) {