1
0
mirror of synced 2024-12-14 07:06:04 +03:00

fixed declaration of Doctrine_Connection_Pgsql::modifyLimitQuery and Doctrine_Connection_Common::modifyLimitQuery to be the same

This commit is contained in:
Tanken 2006-11-01 14:00:08 +00:00
parent 65d4158c71
commit ad595dd839
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class Doctrine_Connection_Common extends Doctrine_Connection {
* @param mixed $limit
* @param mixed $offset
*/
public function modifyLimitQuery($query,$limit = false,$offset = false) {
public function modifyLimitQuery($query,$limit = false,$offset = false,$isManip=false) {
if($limit && $offset) {
$query .= " LIMIT ".$limit." OFFSET ".$offset;
} elseif($limit && ! $offset) {

View File

@ -110,7 +110,7 @@ class Doctrine_Connection_Pgsql extends Doctrine_Connection_Common {
* @return string modified query
*/
public function modifyLimitQuery($query, $limit, $offset, $isManip = false) {
public function modifyLimitQuery($query, $limit=false, $offset=false, $isManip = false) {
if ($limit > 0) {
$query = rtrim($query);