diff options
Diffstat (limited to 'ext/pdo_pgsql')
| -rwxr-xr-x | ext/pdo_pgsql/tests/prepare.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/tests/prepare.inc b/ext/pdo_pgsql/tests/prepare.inc index 6e87485799..5667ac6b43 100755 --- a/ext/pdo_pgsql/tests/prepare.inc +++ b/ext/pdo_pgsql/tests/prepare.inc @@ -4,7 +4,12 @@ require_once('connection.inc'); $SQL = array(); -$DB = new pdo($CONNECTION); +try { + $DB = new pdo($CONNECTION); +} catch (Exception $tmp) { + $DB = NULL; + return; +} foreach(array('test','classtypes') as $name) { |
