1
0
mirror of synced 2025-02-21 22:53:15 +03:00
This commit is contained in:
zYne 2007-10-13 17:06:26 +00:00
parent fa5c28fde0
commit 7d7313ab4a

View File

@ -754,19 +754,19 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
} }
/** /**
* queries the database with limit and offset * queries the database with limit and offset
* added to the query and returns a PDOStatement object * added to the query and returns a Doctrine_Connection_Statement object
* *
* @param string $query * @param string $query
* @param integer $limit * @param integer $limit
* @param integer $offset * @param integer $offset
* @return PDOStatement * @return Doctrine_Connection_Statement
*/ */
public function select($query, $limit = 0, $offset = 0) public function select($query, $limit = 0, $offset = 0)
{ {
if ($limit > 0 || $offset > 0) { if ($limit > 0 || $offset > 0) {
$query = $this->modifyLimitQuery($query, $limit, $offset); $query = $this->modifyLimitQuery($query, $limit, $offset);
} }
return $this->dbh->query($query); return $this->execute($query);
} }
/** /**
* standaloneQuery * standaloneQuery