OFFSET and LIMIT for PostgreSQL corrected.
This commit is contained in:
parent
2fe3e376e6
commit
b2d9a22816
1 changed files with 2 additions and 2 deletions
|
@ -140,10 +140,10 @@ class Doctrine_Connection_Pgsql extends Doctrine_Connection_Common
|
|||
. $from . ' ' . $where . ' LIMIT ' . $limit . ')';
|
||||
|
||||
} else {
|
||||
if ($limit !== false) {
|
||||
if ( ! empty($limit)) {
|
||||
$query .= ' LIMIT ' . $limit;
|
||||
}
|
||||
if ($offset !== false) {
|
||||
if ( ! empty($offset)) {
|
||||
$query .= ' OFFSET ' . $offset;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue