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

allow connecting without database name for sqlanywhere driver

parent e3bf698e
......@@ -47,17 +47,13 @@ class Driver extends AbstractSQLAnywhereDriver
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 {
return new SQLAnywhereConnection(
$this->buildDsn(
$params['host'],
isset($params['port']) ? $params['port'] : null,
$params['server'],
$params['dbname'],
isset($params['dbname']) ? $params['dbname'] : null,
$username,
$password,
$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