summaryrefslogtreecommitdiff
path: root/ext/pdo_odbc/tests/prepare.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo_odbc/tests/prepare.inc')
-rwxr-xr-xext/pdo_odbc/tests/prepare.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/pdo_odbc/tests/prepare.inc b/ext/pdo_odbc/tests/prepare.inc
index 22a6fc720f..c5c12a97b7 100755
--- a/ext/pdo_odbc/tests/prepare.inc
+++ b/ext/pdo_odbc/tests/prepare.inc
@@ -7,7 +7,12 @@ $SQL = array(
);
//$DB = new pdo($CONNECTION, $USER, $PASSWD);
-$DB = new pdo($CONNECTION);
+try {
+ $DB = new pdo($CONNECTION);
+} catch (Exception $tmp) {
+ $DB = NULL;
+ return;
+}
foreach(array('test','classtypes') as $name)
{