OFFSET and LIMIT for PostgreSQL corrected.
This commit is contained in:
parent
2fe3e376e6
commit
b2d9a22816
@ -140,10 +140,10 @@ class Doctrine_Connection_Pgsql extends Doctrine_Connection_Common
|
|||||||
. $from . ' ' . $where . ' LIMIT ' . $limit . ')';
|
. $from . ' ' . $where . ' LIMIT ' . $limit . ')';
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if ($limit !== false) {
|
if ( ! empty($limit)) {
|
||||||
$query .= ' LIMIT ' . $limit;
|
$query .= ' LIMIT ' . $limit;
|
||||||
}
|
}
|
||||||
if ($offset !== false) {
|
if ( ! empty($offset)) {
|
||||||
$query .= ' OFFSET ' . $offset;
|
$query .= ' OFFSET ' . $offset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user