1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Reverted changeset 2271, increase in memory usage too big

This commit is contained in:
jackbravo 2007-08-29 19:07:43 +00:00
parent 7bedb0b21d
commit 2d08773ea7
2 changed files with 1 additions and 5 deletions

View File

@ -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);
}
/**

View File

@ -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);
}