Changeset 4477
- Timestamp:
- 06/06/08 19:17:03 (13 months ago)
- Location:
- branches/0.11
- Files:
-
- 3 modified
-
lib/Doctrine/Connection.php (modified) (1 diff)
-
lib/Doctrine/Table.php (modified) (1 diff)
-
tests/run.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/lib/Doctrine/Connection.php
r4372 r4477 874 874 { 875 875 $parser = new Doctrine_Query($this); 876 877 return $parser->query($query, $params, $hydrationMode); 876 $res = $parser->query($query, $params, $hydrationMode); 877 $parser->free(); 878 879 return $res; 878 880 } 879 881 -
branches/0.11/lib/Doctrine/Table.php
r4449 r4477 1215 1215 1216 1216 $id = is_array($id) ? array_values($id) : array($id); 1217 1218 return $this->createQuery() 1219 ->where(implode(' = ? AND ', (array) $this->getIdentifier()) . ' = ?', $id) 1220 ->limit(1) 1221 ->fetchOne(array(), $hydrationMode); 1217 1218 $q = $this->createQuery(); 1219 $q->where(implode(' = ? AND ', (array) $this->getIdentifier()) . ' = ?', $id) 1220 ->limit(1); 1221 $res = $q->fetchOne(array(), $hydrationMode); 1222 $q->free(); 1223 1224 return $res; 1222 1225 } 1223 1226 -
branches/0.11/tests/run.php
r4474 r4477 46 46 $tickets->addTestCase(new Doctrine_Ticket_941_TestCase()); 47 47 $tickets->addTestCase(new Doctrine_Ticket_930_TestCase()); 48 $tickets->addTestCase(new Doctrine_Ticket_NewTicket_TestCase());49 48 50 49 // Only uncomment the following ticket if you want to check free() performance!