Commit b2d9a228 authored by lukenukem's avatar lukenukem

OFFSET and LIMIT for PostgreSQL corrected.

parent 2fe3e376
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment