]> source.dussan.org Git - nextcloud-server.git/commitdiff
no need to prepare a statement twice
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 10 Jun 2014 12:46:47 +0000 (14:46 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 10 Jun 2014 12:46:47 +0000 (14:46 +0200)
apps/files_sharing/tests/api.php

index 3c683afacb440a3da281332cb958fb88393f012b..72dd5816ea0012015544e60211f3a60a04816796 100644 (file)
@@ -1166,7 +1166,6 @@ class Test_Files_Sharing_Api extends Test_Files_Sharing_Base {
                $query = \OCP\DB::prepare($statement);
                $result = $query->execute(array($shareCreated, \OCP\Share::SHARE_TYPE_LINK));
                $this->assertSame(1, $result);
-               $statement = "UPDATE `*PREFIX*share` SET `stime` = ? WHERE `share_type` = ?";
                $query = \OCP\DB::prepare($statement);
                $result = $query->execute(array($shareCreated, \OCP\Share::SHARE_TYPE_USER));
                $this->assertSame(1, $result);