fixed declaration of Doctrine_Connection_Pgsql::modifyLimitQuery and Doctrine_Connection_Common::modifyLimitQuery to be the same
This commit is contained in:
parent
65d4158c71
commit
ad595dd839
@ -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) {
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user