diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-29 09:44:40 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-29 09:44:40 +0100 |
commit | 2a0cda74d41ece6bee48024dd485bf08087054ad (patch) | |
tree | 8c3e8b30d3db45d3c17de189188f15aa7062cf81 /apps/dav/lib | |
parent | 6526c122afa2c141f4cd5ffd7e292f7a5556cf61 (diff) | |
download | nextcloud-server-2a0cda74d41ece6bee48024dd485bf08087054ad.tar.gz nextcloud-server-2a0cda74d41ece6bee48024dd485bf08087054ad.zip |
Use IQueryBuilder::PARAM_* instead of \PDO::PARAM_*
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/caldav/caldavbackend.php | 4 | ||||
-rw-r--r-- | apps/dav/lib/carddav/carddavbackend.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/lib/caldav/caldavbackend.php b/apps/dav/lib/caldav/caldavbackend.php index 7f6810fb1e2..70dbccb8745 100644 --- a/apps/dav/lib/caldav/caldavbackend.php +++ b/apps/dav/lib/caldav/caldavbackend.php @@ -607,7 +607,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription ->values([ 'calendarid' => $query->createNamedParameter($calendarId), 'uri' => $query->createNamedParameter($objectUri), - 'calendardata' => $query->createNamedParameter($calendarData, \PDO::PARAM_LOB), + 'calendardata' => $query->createNamedParameter($calendarData, IQueryBuilder::PARAM_LOB), 'lastmodified' => $query->createNamedParameter(time()), 'etag' => $query->createNamedParameter($extraData['etag']), 'size' => $query->createNamedParameter($extraData['size']), @@ -646,7 +646,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription $query = $this->db->getQueryBuilder(); $query->update('calendarobjects') - ->set('calendardata', $query->createNamedParameter($calendarData, \PDO::PARAM_LOB)) + ->set('calendardata', $query->createNamedParameter($calendarData, IQueryBuilder::PARAM_LOB)) ->set('lastmodified', $query->createNamedParameter(time())) ->set('etag', $query->createNamedParameter($extraData['etag'])) ->set('size', $query->createNamedParameter($extraData['size'])) diff --git a/apps/dav/lib/carddav/carddavbackend.php b/apps/dav/lib/carddav/carddavbackend.php index 61bdec52479..a109e8bde4a 100644 --- a/apps/dav/lib/carddav/carddavbackend.php +++ b/apps/dav/lib/carddav/carddavbackend.php @@ -489,7 +489,7 @@ class CardDavBackend implements BackendInterface, SyncSupport { $query = $this->db->getQueryBuilder(); $query->insert('cards') ->values([ - 'carddata' => $query->createNamedParameter($cardData, \PDO::PARAM_LOB), + 'carddata' => $query->createNamedParameter($cardData, IQueryBuilder::PARAM_LOB), 'uri' => $query->createNamedParameter($cardUri), 'lastmodified' => $query->createNamedParameter(time()), 'addressbookid' => $query->createNamedParameter($addressBookId), @@ -542,7 +542,7 @@ class CardDavBackend implements BackendInterface, SyncSupport { $etag = md5($cardData); $query = $this->db->getQueryBuilder(); $query->update('cards') - ->set('carddata', $query->createNamedParameter($cardData, \PDO::PARAM_LOB)) + ->set('carddata', $query->createNamedParameter($cardData, IQueryBuilder::PARAM_LOB)) ->set('lastmodified', $query->createNamedParameter(time())) ->set('size', $query->createNamedParameter(strlen($cardData))) ->set('etag', $query->createNamedParameter($etag)) |