summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-04-06 22:05:09 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-04-06 22:05:09 +0200
commitd70f905f91dd94064bd1202878dc10f054701af8 (patch)
tree73939462e0a8b995036916d204d508fb9b901d54 /tests
parentdfce69a3ae26b449e653958665aa66586cb1e842 (diff)
fix deletion of items from users on sqlite
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/db/ItemMapperTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/db/ItemMapperTest.php b/tests/unit/db/ItemMapperTest.php
index a13f7d58d..0d5289786 100644
--- a/tests/unit/db/ItemMapperTest.php
+++ b/tests/unit/db/ItemMapperTest.php
@@ -407,8 +407,8 @@ class ItemMapperTest extends \OCA\AppFramework\Utility\MapperTestUtility {
public function testDeleteFromUser(){
$userId = 'john';
- $sql = 'DELETE FROM `*PREFIX*news_items` `items` ' .
- 'WHERE `items`.`feed_id` IN (' .
+ $sql = 'DELETE FROM `*PREFIX*news_items` ' .
+ 'WHERE `feed_id` IN (' .
'SELECT `feeds`.`id` FROM `*PREFIX*news_feeds` `feeds` ' .
'WHERE `feeds`.`user_id` = ?' .
')';