Add MD5() to sqlite
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
a96dd73f6c
commit
ed6c61256d
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue