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 ecad5cd095
commit 8c68e837e4
10 changed files with 350 additions and 8 deletions

View File

@ -185,7 +185,8 @@ function serendipity_fetchImagesFromDatabase($start=0, $limit=0, &$total, $order
ON (hp.mediaid = i.id AND hp.property_group = 'base_hidden')\n";
}
if ($serendipity['dbType'] == 'postgres') {
if ($serendipity['dbType'] == 'postgres' ||
$serendipity['dbType'] == 'pdo-postgres') {
$cond['group'] = '';
$cond['distinct'] = 'DISTINCT';
} else {
@ -252,7 +253,8 @@ function serendipity_fetchImageFromDatabase($id, $mode = 'read') {
$assocVal = false;
}
if ($serendipity['dbType'] == 'postgres') {
if ($serendipity['dbType'] == 'postgres' ||
$serendipity['dbType'] == 'pdo-postgres') {
$cond['group'] = '';
$cond['distinct'] = 'DISTINCT';
} else {