Fixed test skip conditions.

# Same needs to be done to odbc, but it seems access is restricted
# for "privileged" folks.
This commit is contained in:
Ilia Alshanetsky 2005-06-21 13:42:23 +00:00
parent f5fb13103f
commit c594f47f76
3 changed files with 18 additions and 3 deletions

View File

@ -4,7 +4,12 @@ require_once('connection.inc');
$SQL = array();
$DB = new pdo($CONNECTION, $USER, $PASSWD);
try {
$DB = new pdo($CONNECTION, $USER, $PASSWD);
} catch (Exception $tmp) {
$DB = NULL;
return;
}
foreach(array('test','classtypes') as $name)
{

View File

@ -4,7 +4,12 @@ require_once('connection.inc');
$SQL = array();
$DB = new pdo($CONNECTION, $USER, $PASSWORD);
try {
$DB = new pdo($CONNECTION, $USER, $PASSWORD);
} catch (Exception $tmp) {
$DB = NULL;
return;
}
$DB->query('DROP TABLE test');
$DB->query('DROP TABLE classtypes');

View File

@ -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)
{