Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-01-16 18:16:32 +0300
committerRobin Appelman <robin@icewind.nl>2017-09-22 16:47:48 +0300
commited6c61256dd1591eeed22a2dcccc640db71a05ee (patch)
tree62241fd62f0a92813e5b97e288032b9bb2a8879d /lib/private
parenta96dd73f6c032c3f50679968d3de1ebce6c6019e (diff)
Add MD5() to sqlite
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private')
-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() {