diff options
author | Robin Appelman <robin@icewind.nl> | 2017-01-16 18:16:32 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-09-22 16:47:48 +0300 |
commit | ed6c61256dd1591eeed22a2dcccc640db71a05ee (patch) | |
tree | 62241fd62f0a92813e5b97e288032b9bb2a8879d /lib/private | |
parent | a96dd73f6c032c3f50679968d3de1ebce6c6019e (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.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() { |