1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 22:26:43 +02:00

- added config alias 'hostname' for 'host'

This commit is contained in:
David Grudl
2008-07-15 09:34:05 +00:00
parent 69ead6da56
commit 7f0fa2e75e
5 changed files with 14 additions and 8 deletions

View File

@@ -74,7 +74,7 @@ class DibiMsSqlDriver extends /*Nette::*/Object implements IDibiDriver
{
DibiConnection::alias($config, 'username', 'user');
DibiConnection::alias($config, 'password', 'pass');
DibiConnection::alias($config, 'host');
DibiConnection::alias($config, 'host', 'hostname');
if (empty($config['persistent'])) {
$this->connection = @mssql_connect($config['host'], $config['username'], $config['password'], TRUE); // intentionally @