Commit b505af0f authored by Steve Müller's avatar Steve Müller

allow connecting without database name for sqlanywhere driver

parent d8a96fcf
...@@ -47,17 +47,13 @@ class Driver extends AbstractSQLAnywhereDriver ...@@ -47,17 +47,13 @@ class Driver extends AbstractSQLAnywhereDriver
throw new SQLAnywhereException("Missing 'server' in configuration for sqlanywhere driver."); throw new SQLAnywhereException("Missing 'server' in configuration for sqlanywhere driver.");
} }
if ( ! isset($params['dbname'])) {
throw new SQLAnywhereException("Missing 'dbname' in configuration for sqlanywhere driver.");
}
try { try {
return new SQLAnywhereConnection( return new SQLAnywhereConnection(
$this->buildDsn( $this->buildDsn(
$params['host'], $params['host'],
isset($params['port']) ? $params['port'] : null, isset($params['port']) ? $params['port'] : null,
$params['server'], $params['server'],
$params['dbname'], isset($params['dbname']) ? $params['dbname'] : null,
$username, $username,
$password, $password,
$driverOptions $driverOptions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment