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

DibiMsSql2005Driver: added config aliases 'username', 'password', 'database'

This commit is contained in:
David Grudl
2010-05-19 15:36:56 +02:00
parent 550c477797
commit 0748c693ff
2 changed files with 27 additions and 4 deletions

View File

@@ -128,6 +128,25 @@ echo "</p>\n";
// connects to MS SQL 2005
echo '<p>Connecting to MS SQL 2005: ';
try {
dibi::connect(array(
'driver' => 'mssql2005',
'host' => '(local)',
'username' => 'Administrator',
'password' => 'xxx',
'database' => 'main',
));
echo 'OK';
} catch (DibiException $e) {
echo get_class($e), ': ', $e->getMessage(), "\n";
}
echo "</p>\n";
// connects to Oracle
echo '<p>Connecting to Oracle: ';
try {