diff options
| -rw-r--r-- | drivers/adodb-db2.inc.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/adodb-db2.inc.php b/drivers/adodb-db2.inc.php index 9a17cb77..a5271333 100644 --- a/drivers/adodb-db2.inc.php +++ b/drivers/adodb-db2.inc.php @@ -134,8 +134,6 @@ class ADODB_db2 extends ADOConnection { if (strcmp($argDSN,'*LOCAL') == 0) { $connectMessage = '*LOCAL connection'; - $schema = $argDatabasename; - $argDatabasename = ''; } else if ($useCataloguedConnection) { @@ -150,6 +148,11 @@ class ADODB_db2 extends ADOConnection { } ADOConnection::outp($connectMessage); } + if (strcmp($argDSN,'*LOCAL') == 0) + { + $schema = $argDatabasename; + $argDatabasename = ''; + } /* * This needs to be set before the connect(). */ |
