[Pkg-owncloud-commits] [owncloud] 71/273: Add missing quotes for Oracle
David Prévot
taffit at moszumanska.debian.org
Fri Jul 4 03:12:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 7ee90ddd595ab51d76bd95809dbb1bd997096e10
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Thu Jun 26 19:24:46 2014 +0200
Add missing quotes for Oracle
---
tests/lib/repair/repairmimetypes.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/lib/repair/repairmimetypes.php b/tests/lib/repair/repairmimetypes.php
index 5c0a36d..3ed19bd 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) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list