used standard SQL that mysql and pgsql both like
This commit is contained in:
parent
b9ea2bf1bc
commit
815630fe63
@ -650,11 +650,7 @@ class User extends Memcached_DataObject
|
|||||||
'AND subscription.subscribed != subscription.subscriber ' .
|
'AND subscription.subscribed != subscription.subscriber ' .
|
||||||
'ORDER BY subscription.created DESC ';
|
'ORDER BY subscription.created DESC ';
|
||||||
|
|
||||||
if (common_config('db','type') == 'pgsql') {
|
|
||||||
$qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset;
|
$qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset;
|
||||||
} else {
|
|
||||||
$qry .= ' LIMIT ' . $offset . ', ' . $limit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$profile = new Profile();
|
$profile = new Profile();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user