Add MD5() to sqlite
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
1ee7e1c0b1
commit
83f3990e06
|
@ -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