diff options
author | Robin Appelman <robin@icewind.nl> | 2017-01-16 16:16:32 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-03-30 11:09:19 +0200 |
commit | 83f3990e069e466741b35ecc5ef730972d22f67d (patch) | |
tree | cde43a035bb813174ce044122099959438e17e9b /lib/private/DB | |
parent | 1ee7e1c0b128b16c3327ca6aa90335ce12fd678f (diff) | |
download | nextcloud-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.php | 3 |
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() { |