diff --git a/lib/Doctrine/Connection/Sqlite.php b/lib/Doctrine/Connection/Sqlite.php index f392d53ed..2e81479bb 100644 --- a/lib/Doctrine/Connection/Sqlite.php +++ b/lib/Doctrine/Connection/Sqlite.php @@ -88,11 +88,6 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common $this->dbh->sqliteCreateFunction('mod', array('Doctrine_Expression_Sqlite', 'modImpl'), 2); $this->dbh->sqliteCreateFunction('concat', array('Doctrine_Expression_Sqlite', 'concatImpl')); $this->dbh->sqliteCreateFunction('md5', 'md5', 1); - $this->dbh->sqliteCreateFunction('sha1', 'sha1', 1); - $this->dbh->sqliteCreateFunction('locate', 'strpos', 2); - $this->dbh->sqliteCreateFunction('rtrim', 'rtrim', 1); - $this->dbh->sqliteCreateFunction('ltrim', 'ltrim', 1); - $this->dbh->sqliteCreateFunction('trim', 'trim', 1); $this->dbh->sqliteCreateFunction('now', 'time', 0); } /** diff --git a/tests/UnitTestCase.php b/tests/UnitTestCase.php index 0f109759c..6d5777f9b 100644 --- a/tests/UnitTestCase.php +++ b/tests/UnitTestCase.php @@ -132,6 +132,7 @@ class Doctrine_UnitTestCase extends UnitTestCase } catch(Doctrine_Manager_Exception $e) { if($this->driverName == 'main') { $this->dbh = new PDO('sqlite::memory:'); + $this->dbh->sqliteCreateFunction('trim', 'trim', 1); } else { $this->dbh = $this->adapter = new Doctrine_Adapter_Mock($this->driverName); }