diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-06-21 13:42:23 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-06-21 13:42:23 +0000 |
| commit | c594f47f76315b1f60654058d2dbd6650a2810bf (patch) | |
| tree | 7adb7e8a8b10dd9d4653de649d3f53f2dd5f1029 /ext/pdo_pgsql | |
| parent | f5fb13103f1126f688490472ae6060dc0c183d8e (diff) | |
| download | php-git-c594f47f76315b1f60654058d2dbd6650a2810bf.tar.gz | |
Fixed test skip conditions.
# Same needs to be done to odbc, but it seems access is restricted
# for "privileged" folks.
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) { |
