Fix usage of rename executeUpdate
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
865661ed75
commit
99f2fa73d1
|
@ -805,7 +805,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
foreach ($values as $column => $value) {
|
foreach ($values as $column => $value) {
|
||||||
$query->setValue($column, $query->createNamedParameter($value));
|
$query->setValue($column, $query->createNamedParameter($value));
|
||||||
}
|
}
|
||||||
$query->executeUpdate();
|
$query->executeStatement();
|
||||||
$calendarId = $query->getLastInsertId();
|
$calendarId = $query->getLastInsertId();
|
||||||
|
|
||||||
$calendarData = $this->getCalendarById($calendarId);
|
$calendarData = $this->getCalendarById($calendarId);
|
||||||
|
@ -860,7 +860,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$query->set($fieldName, $query->createNamedParameter($value));
|
$query->set($fieldName, $query->createNamedParameter($value));
|
||||||
}
|
}
|
||||||
$query->where($query->expr()->eq('id', $query->createNamedParameter($calendarId)));
|
$query->where($query->expr()->eq('id', $query->createNamedParameter($calendarId)));
|
||||||
$query->executeUpdate();
|
$query->executeStatement();
|
||||||
|
|
||||||
$this->addChange($calendarId, "", 2);
|
$this->addChange($calendarId, "", 2);
|
||||||
|
|
||||||
|
@ -905,7 +905,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$query->delete($this->dbObjectPropertiesTable)
|
$query->delete($this->dbObjectPropertiesTable)
|
||||||
->where($query->expr()->eq('calendarid', $query->createNamedParameter($calendarId)))
|
->where($query->expr()->eq('calendarid', $query->createNamedParameter($calendarId)))
|
||||||
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_CALENDAR)))
|
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_CALENDAR)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
// Only dispatch if we actually deleted anything
|
// Only dispatch if we actually deleted anything
|
||||||
if ($calendarData) {
|
if ($calendarData) {
|
||||||
|
@ -1130,7 +1130,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
'uid' => $query->createNamedParameter($extraData['uid']),
|
'uid' => $query->createNamedParameter($extraData['uid']),
|
||||||
'calendartype' => $query->createNamedParameter($calendarType),
|
'calendartype' => $query->createNamedParameter($calendarType),
|
||||||
])
|
])
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
$this->updateProperties($calendarId, $objectUri, $calendarData, $calendarType);
|
$this->updateProperties($calendarId, $objectUri, $calendarData, $calendarType);
|
||||||
$this->addChange($calendarId, $objectUri, 1, $calendarType);
|
$this->addChange($calendarId, $objectUri, 1, $calendarType);
|
||||||
|
@ -1203,7 +1203,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
->where($query->expr()->eq('calendarid', $query->createNamedParameter($calendarId)))
|
->where($query->expr()->eq('calendarid', $query->createNamedParameter($calendarId)))
|
||||||
->andWhere($query->expr()->eq('uri', $query->createNamedParameter($objectUri)))
|
->andWhere($query->expr()->eq('uri', $query->createNamedParameter($objectUri)))
|
||||||
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter($calendarType)))
|
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter($calendarType)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
$this->updateProperties($calendarId, $objectUri, $calendarData, $calendarType);
|
$this->updateProperties($calendarId, $objectUri, $calendarData, $calendarType);
|
||||||
$this->addChange($calendarId, $objectUri, 2, $calendarType);
|
$this->addChange($calendarId, $objectUri, 2, $calendarType);
|
||||||
|
@ -1257,7 +1257,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$query->update('calendarobjects')
|
$query->update('calendarobjects')
|
||||||
->set('classification', $query->createNamedParameter($classification))
|
->set('classification', $query->createNamedParameter($classification))
|
||||||
->where($query->expr()->eq('id', $query->createNamedParameter($calendarObjectId)))
|
->where($query->expr()->eq('id', $query->createNamedParameter($calendarObjectId)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2151,7 +2151,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
|
|
||||||
$query->insert('calendarsubscriptions')
|
$query->insert('calendarsubscriptions')
|
||||||
->values($valuesToInsert)
|
->values($valuesToInsert)
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
$subscriptionId = $query->getLastInsertId();
|
$subscriptionId = $query->getLastInsertId();
|
||||||
|
|
||||||
|
@ -2206,7 +2206,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$query->set($fieldName, $query->createNamedParameter($value));
|
$query->set($fieldName, $query->createNamedParameter($value));
|
||||||
}
|
}
|
||||||
$query->where($query->expr()->eq('id', $query->createNamedParameter($subscriptionId)))
|
$query->where($query->expr()->eq('id', $query->createNamedParameter($subscriptionId)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
$subscriptionRow = $this->getSubscriptionById($subscriptionId);
|
$subscriptionRow = $this->getSubscriptionById($subscriptionId);
|
||||||
$this->dispatcher->dispatchTyped(new SubscriptionUpdatedEvent((int)$subscriptionId, $subscriptionRow, [], $mutations));
|
$this->dispatcher->dispatchTyped(new SubscriptionUpdatedEvent((int)$subscriptionId, $subscriptionRow, [], $mutations));
|
||||||
|
@ -2241,23 +2241,23 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$query = $this->db->getQueryBuilder();
|
$query = $this->db->getQueryBuilder();
|
||||||
$query->delete('calendarsubscriptions')
|
$query->delete('calendarsubscriptions')
|
||||||
->where($query->expr()->eq('id', $query->createNamedParameter($subscriptionId)))
|
->where($query->expr()->eq('id', $query->createNamedParameter($subscriptionId)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
$query = $this->db->getQueryBuilder();
|
$query = $this->db->getQueryBuilder();
|
||||||
$query->delete('calendarobjects')
|
$query->delete('calendarobjects')
|
||||||
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
||||||
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
$query->delete('calendarchanges')
|
$query->delete('calendarchanges')
|
||||||
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
||||||
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
$query->delete($this->dbObjectPropertiesTable)
|
$query->delete($this->dbObjectPropertiesTable)
|
||||||
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
||||||
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
if ($subscriptionRow) {
|
if ($subscriptionRow) {
|
||||||
$this->dispatcher->dispatchTyped(new SubscriptionDeletedEvent((int)$subscriptionId, $subscriptionRow, []));
|
$this->dispatcher->dispatchTyped(new SubscriptionDeletedEvent((int)$subscriptionId, $subscriptionRow, []));
|
||||||
|
@ -2347,7 +2347,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$query->delete('schedulingobjects')
|
$query->delete('schedulingobjects')
|
||||||
->where($query->expr()->eq('principaluri', $query->createNamedParameter($principalUri)))
|
->where($query->expr()->eq('principaluri', $query->createNamedParameter($principalUri)))
|
||||||
->andWhere($query->expr()->eq('uri', $query->createNamedParameter($objectUri)))
|
->andWhere($query->expr()->eq('uri', $query->createNamedParameter($objectUri)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2369,7 +2369,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
'etag' => $query->createNamedParameter(md5($objectData)),
|
'etag' => $query->createNamedParameter(md5($objectData)),
|
||||||
'size' => $query->createNamedParameter(strlen($objectData))
|
'size' => $query->createNamedParameter(strlen($objectData))
|
||||||
])
|
])
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2401,7 +2401,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
'operation' => $query->createNamedParameter($operation),
|
'operation' => $query->createNamedParameter($operation),
|
||||||
'calendartype' => $query->createNamedParameter($calendarType),
|
'calendartype' => $query->createNamedParameter($calendarType),
|
||||||
])
|
])
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
$stmt = $this->db->prepare("UPDATE `*PREFIX*$table` SET `synctoken` = `synctoken` + 1 WHERE `id` = ?");
|
$stmt = $this->db->prepare("UPDATE `*PREFIX*$table` SET `synctoken` = `synctoken` + 1 WHERE `id` = ?");
|
||||||
$stmt->execute([
|
$stmt->execute([
|
||||||
|
@ -2584,7 +2584,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
'resourceid' => $query->createNamedParameter($calendar->getResourceId()),
|
'resourceid' => $query->createNamedParameter($calendar->getResourceId()),
|
||||||
'publicuri' => $query->createNamedParameter($publicUri)
|
'publicuri' => $query->createNamedParameter($publicUri)
|
||||||
]);
|
]);
|
||||||
$query->executeUpdate();
|
$query->executeStatement();
|
||||||
|
|
||||||
$this->dispatcher->dispatchTyped(new CalendarPublishedEvent((int)$calendarId, $calendarData, $publicUri));
|
$this->dispatcher->dispatchTyped(new CalendarPublishedEvent((int)$calendarId, $calendarData, $publicUri));
|
||||||
return $publicUri;
|
return $publicUri;
|
||||||
|
@ -2592,7 +2592,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$query->delete('dav_shares')
|
$query->delete('dav_shares')
|
||||||
->where($query->expr()->eq('resourceid', $query->createNamedParameter($calendar->getResourceId())))
|
->where($query->expr()->eq('resourceid', $query->createNamedParameter($calendar->getResourceId())))
|
||||||
->andWhere($query->expr()->eq('access', $query->createNamedParameter(self::ACCESS_PUBLIC)));
|
->andWhere($query->expr()->eq('access', $query->createNamedParameter(self::ACCESS_PUBLIC)));
|
||||||
$query->executeUpdate();
|
$query->executeStatement();
|
||||||
|
|
||||||
$this->dispatcher->dispatchTyped(new CalendarUnpublishedEvent((int)$calendarId, $calendarData));
|
$this->dispatcher->dispatchTyped(new CalendarUnpublishedEvent((int)$calendarId, $calendarData));
|
||||||
return null;
|
return null;
|
||||||
|
@ -2676,7 +2676,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$query->setParameter('name', $property->name);
|
$query->setParameter('name', $property->name);
|
||||||
$query->setParameter('parameter', null);
|
$query->setParameter('parameter', null);
|
||||||
$query->setParameter('value', $value);
|
$query->setParameter('value', $value);
|
||||||
$query->executeUpdate();
|
$query->executeStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists($property->name, self::$indexParameters)) {
|
if (array_key_exists($property->name, self::$indexParameters)) {
|
||||||
|
@ -2693,7 +2693,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$query->setParameter('name', $property->name);
|
$query->setParameter('name', $property->name);
|
||||||
$query->setParameter('parameter', mb_strcut($key, 0, 254));
|
$query->setParameter('parameter', mb_strcut($key, 0, 254));
|
||||||
$query->setParameter('value', mb_strcut($value, 0, 254));
|
$query->setParameter('value', mb_strcut($value, 0, 254));
|
||||||
$query->executeUpdate();
|
$query->executeStatement();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2737,17 +2737,17 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$query->delete('calendarobjects')
|
$query->delete('calendarobjects')
|
||||||
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
||||||
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
$query->delete('calendarchanges')
|
$query->delete('calendarchanges')
|
||||||
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
||||||
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
$query->delete($this->dbObjectPropertiesTable)
|
$query->delete($this->dbObjectPropertiesTable)
|
||||||
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
|
||||||
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
foreach ($uris as $uri) {
|
foreach ($uris as $uri) {
|
||||||
$this->addChange($subscriptionId, $uri, 3, self::CALENDAR_TYPE_SUBSCRIPTION);
|
$this->addChange($subscriptionId, $uri, 3, self::CALENDAR_TYPE_SUBSCRIPTION);
|
||||||
|
@ -2769,7 +2769,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
->set('uri', $query->createNamedParameter($newUriName ?: $uriName))
|
->set('uri', $query->createNamedParameter($newUriName ?: $uriName))
|
||||||
->where($query->expr()->eq('principaluri', $query->createNamedParameter($uriOrigin)))
|
->where($query->expr()->eq('principaluri', $query->createNamedParameter($uriOrigin)))
|
||||||
->andWhere($query->expr()->eq('uri', $query->createNamedParameter($uriName)))
|
->andWhere($query->expr()->eq('uri', $query->createNamedParameter($uriName)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2793,7 +2793,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
$query->delete($this->dbObjectPropertiesTable)
|
$query->delete($this->dbObjectPropertiesTable)
|
||||||
->where($query->expr()->eq('objectid', $query->createNamedParameter($objectId)))
|
->where($query->expr()->eq('objectid', $query->createNamedParameter($objectId)))
|
||||||
->andWhere($query->expr()->eq('calendarid', $query->createNamedParameter($calendarId)));
|
->andWhere($query->expr()->eq('calendarid', $query->createNamedParameter($calendarId)));
|
||||||
$query->executeUpdate();
|
$query->executeStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -442,7 +442,7 @@ class RequestHandlerController extends OCSController {
|
||||||
->set('remote_id', $qb->createNamedParameter($newRemoteId))
|
->set('remote_id', $qb->createNamedParameter($newRemoteId))
|
||||||
->where($qb->expr()->eq('remote_id', $qb->createNamedParameter($id)))
|
->where($qb->expr()->eq('remote_id', $qb->createNamedParameter($id)))
|
||||||
->andWhere($qb->expr()->eq('share_token', $qb->createNamedParameter($token)));
|
->andWhere($qb->expr()->eq('share_token', $qb->createNamedParameter($token)));
|
||||||
$affected = $query->executeUpdate();
|
$affected = $query->executeStatement();
|
||||||
|
|
||||||
if ($affected > 0) {
|
if ($affected > 0) {
|
||||||
return new Http\DataResponse(['remote' => $cloudId->getRemote(), 'owner' => $cloudId->getUser()]);
|
return new Http\DataResponse(['remote' => $cloudId->getRemote(), 'owner' => $cloudId->getUser()]);
|
||||||
|
|
|
@ -226,7 +226,7 @@ class Trashbin {
|
||||||
->setValue('timestamp', $query->createNamedParameter($timestamp))
|
->setValue('timestamp', $query->createNamedParameter($timestamp))
|
||||||
->setValue('location', $query->createNamedParameter($targetLocation))
|
->setValue('location', $query->createNamedParameter($targetLocation))
|
||||||
->setValue('user', $query->createNamedParameter($user));
|
->setValue('user', $query->createNamedParameter($user));
|
||||||
$result = $query->executeUpdate();
|
$result = $query->executeStatement();
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
\OC::$server->getLogger()->error('trash bin database couldn\'t be updated for the files owner', ['app' => 'files_trashbin']);
|
\OC::$server->getLogger()->error('trash bin database couldn\'t be updated for the files owner', ['app' => 'files_trashbin']);
|
||||||
}
|
}
|
||||||
|
@ -353,7 +353,7 @@ class Trashbin {
|
||||||
->setValue('timestamp', $query->createNamedParameter($timestamp))
|
->setValue('timestamp', $query->createNamedParameter($timestamp))
|
||||||
->setValue('location', $query->createNamedParameter($location))
|
->setValue('location', $query->createNamedParameter($location))
|
||||||
->setValue('user', $query->createNamedParameter($owner));
|
->setValue('user', $query->createNamedParameter($owner));
|
||||||
$result = $query->executeUpdate();
|
$result = $query->executeStatement();
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
\OC::$server->getLogger()->error('trash bin database couldn\'t be updated', ['app' => 'files_trashbin']);
|
\OC::$server->getLogger()->error('trash bin database couldn\'t be updated', ['app' => 'files_trashbin']);
|
||||||
}
|
}
|
||||||
|
@ -516,7 +516,7 @@ class Trashbin {
|
||||||
->where($query->expr()->eq('user', $query->createNamedParameter($user)))
|
->where($query->expr()->eq('user', $query->createNamedParameter($user)))
|
||||||
->andWhere($query->expr()->eq('id', $query->createNamedParameter($filename)))
|
->andWhere($query->expr()->eq('id', $query->createNamedParameter($filename)))
|
||||||
->andWhere($query->expr()->eq('timestamp', $query->createNamedParameter($timestamp)));
|
->andWhere($query->expr()->eq('timestamp', $query->createNamedParameter($timestamp)));
|
||||||
$query->executeUpdate();
|
$query->executeStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -606,7 +606,7 @@ class Trashbin {
|
||||||
$query = \OC::$server->getDatabaseConnection()->getQueryBuilder();
|
$query = \OC::$server->getDatabaseConnection()->getQueryBuilder();
|
||||||
$query->delete('files_trash')
|
$query->delete('files_trash')
|
||||||
->where($query->expr()->eq('user', $query->createNamedParameter($user)));
|
->where($query->expr()->eq('user', $query->createNamedParameter($user)));
|
||||||
$query->executeUpdate();
|
$query->executeStatement();
|
||||||
|
|
||||||
// Bulk PostDelete-Hook
|
// Bulk PostDelete-Hook
|
||||||
\OC_Hook::emit('\OCP\Trashbin', 'deleteAll', ['paths' => $filePaths]);
|
\OC_Hook::emit('\OCP\Trashbin', 'deleteAll', ['paths' => $filePaths]);
|
||||||
|
@ -660,7 +660,7 @@ class Trashbin {
|
||||||
->where($query->expr()->eq('user', $query->createNamedParameter($user)))
|
->where($query->expr()->eq('user', $query->createNamedParameter($user)))
|
||||||
->andWhere($query->expr()->eq('id', $query->createNamedParameter($filename)))
|
->andWhere($query->expr()->eq('id', $query->createNamedParameter($filename)))
|
||||||
->andWhere($query->expr()->eq('timestamp', $query->createNamedParameter($timestamp)));
|
->andWhere($query->expr()->eq('timestamp', $query->createNamedParameter($timestamp)));
|
||||||
$query->executeUpdate();
|
$query->executeStatement();
|
||||||
|
|
||||||
$file = $filename . '.d' . $timestamp;
|
$file = $filename . '.d' . $timestamp;
|
||||||
} else {
|
} else {
|
||||||
|
@ -746,7 +746,7 @@ class Trashbin {
|
||||||
$query = \OC::$server->getDatabaseConnection()->getQueryBuilder();
|
$query = \OC::$server->getDatabaseConnection()->getQueryBuilder();
|
||||||
$query->delete('files_trash')
|
$query->delete('files_trash')
|
||||||
->where($query->expr()->eq('user', $query->createNamedParameter($uid)));
|
->where($query->expr()->eq('user', $query->createNamedParameter($uid)));
|
||||||
return (bool) $query->executeUpdate();
|
return (bool) $query->executeStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -77,6 +77,6 @@ class AccessTokenMapper extends QBMapper {
|
||||||
$qb
|
$qb
|
||||||
->delete($this->tableName)
|
->delete($this->tableName)
|
||||||
->where($qb->expr()->eq('client_id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT)));
|
->where($qb->expr()->eq('client_id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT)));
|
||||||
$qb->executeUpdate();
|
$qb->executeStatement();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -696,7 +696,7 @@ class ShareByMailProvider implements IShareProvider {
|
||||||
*/
|
*/
|
||||||
$qb->setValue('file_target', $qb->createNamedParameter(''));
|
$qb->setValue('file_target', $qb->createNamedParameter(''));
|
||||||
|
|
||||||
$qb->executeUpdate();
|
$qb->executeStatement();
|
||||||
return $qb->getLastInsertId();
|
return $qb->getLastInsertId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -732,7 +732,7 @@ class ShareByMailProvider implements IShareProvider {
|
||||||
->set('expiration', $qb->createNamedParameter($share->getExpirationDate(), IQueryBuilder::PARAM_DATE))
|
->set('expiration', $qb->createNamedParameter($share->getExpirationDate(), IQueryBuilder::PARAM_DATE))
|
||||||
->set('note', $qb->createNamedParameter($share->getNote()))
|
->set('note', $qb->createNamedParameter($share->getNote()))
|
||||||
->set('hide_download', $qb->createNamedParameter((int)$share->getHideDownload(), IQueryBuilder::PARAM_INT))
|
->set('hide_download', $qb->createNamedParameter((int)$share->getHideDownload(), IQueryBuilder::PARAM_INT))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
|
|
||||||
if ($originalShare->getNote() !== $share->getNote() && $share->getNote() !== '') {
|
if ($originalShare->getNote() !== $share->getNote() && $share->getNote() !== '') {
|
||||||
$this->sendNote($share);
|
$this->sendNote($share);
|
||||||
|
@ -964,7 +964,7 @@ class ShareByMailProvider implements IShareProvider {
|
||||||
$qb = $this->dbConnection->getQueryBuilder();
|
$qb = $this->dbConnection->getQueryBuilder();
|
||||||
$qb->delete('share')
|
$qb->delete('share')
|
||||||
->where($qb->expr()->eq('id', $qb->createNamedParameter($shareId)));
|
->where($qb->expr()->eq('id', $qb->createNamedParameter($shareId)));
|
||||||
$qb->executeUpdate();
|
$qb->executeStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1058,7 +1058,7 @@ class ShareByMailProvider implements IShareProvider {
|
||||||
$qb->delete('share')
|
$qb->delete('share')
|
||||||
->where($qb->expr()->eq('share_type', $qb->createNamedParameter(IShare::TYPE_EMAIL)))
|
->where($qb->expr()->eq('share_type', $qb->createNamedParameter(IShare::TYPE_EMAIL)))
|
||||||
->andWhere($qb->expr()->eq('uid_owner', $qb->createNamedParameter($uid)))
|
->andWhere($qb->expr()->eq('uid_owner', $qb->createNamedParameter($uid)))
|
||||||
->executeUpdate();
|
->executeStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue