1
0

Added PDO::Postgres DB-layer support by Theo Schlossnagle

This commit is contained in:
Garvin Hicking
2007-02-06 08:27:29 +00:00
parent 99021e58cd
commit 1c83a7099a
10 changed files with 350 additions and 8 deletions

View File

@ -367,7 +367,8 @@ function serendipity_fetchUsers($user = '', $group = null, $is_count = false) {
}
if ($is_count || $group != null) {
if ($serendipity['dbType'] == 'postgres') {
if ($serendipity['dbType'] == 'postgres' ||
$serendipity['dbType'] == 'pdo-postgres') {
// Why does PostgreSQL keep doing this to us? :-)
$query_group = 'GROUP BY a.authorid, a.realname, a.username, a.password, a.mail_comments, a.mail_trackbacks, a.email, a.userlevel, a.right_publish';
$query_distinct = 'DISTINCT';