Mantis - Quercus
Viewing Issue Advanced Details
5325 block always 12-27-12 13:07 12-01-12 16:06
publicocean0  
nam  
normal  
closed 4.0.34  
fixed  
none    
none 4.0.34  
0005325: Not able to use PDO with postgres
The url connection building is erroneus (slash missing )

Notes
(0006127)
nam   
12-28-12 00:05   
How are you using it? I am able to use PDO with postgres:

<?php

$dsn = "pgsql:dbname=test;user=caucho;password=caucho";

$pdo = new PDO($dsn);

$sql = "SELECT (TIMESTAMP '2012-12-04' - TIMESTAMP '2012-12-02')::interval AS x";
$stmt = $pdo->prepare($sql);

var_dump($stmt->execute());
var_dump($stmt->errorInfo());
var_dump($stmt->fetchAll(PDO::FETCH_ASSOC));

?>
(0006133)
publicocean0   
12-30-12 03:26   
Try to pass alo the port of the postgres server in the your example :)
(0006134)
nam   
12-01-12 16:06   
php/1s79
php/1s7a

Thanks for pointing that out :). I just committed a fix into our repository.