summaryrefslogtreecommitdiffstats
path: root/lib/private/DB
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-01-16 16:16:32 +0100
committerRobin Appelman <robin@icewind.nl>2017-03-30 11:09:19 +0200
commit83f3990e069e466741b35ecc5ef730972d22f67d (patch)
treecde43a035bb813174ce044122099959438e17e9b /lib/private/DB
parent1ee7e1c0b128b16c3327ca6aa90335ce12fd678f (diff)
downloadnextcloud-server-83f3990e069e466741b35ecc5ef730972d22f67d.tar.gz
nextcloud-server-83f3990e069e466741b35ecc5ef730972d22f67d.zip
Add MD5() to sqlite
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/DB')
-rw-r--r--lib/private/DB/SQLiteSessionInit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/DB/SQLiteSessionInit.php b/lib/private/DB/SQLiteSessionInit.php
index f8e6dcef8ad..0e947b9918e 100644
--- a/lib/private/DB/SQLiteSessionInit.php
+++ b/lib/private/DB/SQLiteSessionInit.php
@@ -58,6 +58,9 @@ class SQLiteSessionInit implements EventSubscriber {
$sensitive = ($this->caseSensitiveLike) ? 'true' : 'false';
$args->getConnection()->executeUpdate('PRAGMA case_sensitive_like = ' . $sensitive);
$args->getConnection()->executeUpdate('PRAGMA journal_mode = ' . $this->journalMode);
+ /** @var \PDO $pdo */
+ $pdo = $args->getConnection()->getWrappedConnection();
+ $pdo->sqliteCreateFunction('md5', 'md5', 1);
}
public function getSubscribedEvents() {