]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add MD5() to sqlite
authorRobin Appelman <robin@icewind.nl>
Mon, 16 Jan 2017 15:16:32 +0000 (16:16 +0100)
committerRobin Appelman <robin@icewind.nl>
Thu, 30 Mar 2017 09:09:19 +0000 (11:09 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/DB/SQLiteSessionInit.php

index f8e6dcef8addd3e65ecc9a0034a13cb23a5b36fb..0e947b9918e6dd1107c2606a1184b75268983071 100644 (file)
@@ -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() {