mirror of
https://github.com/dg/dibi.git
synced 2025-08-01 11:50:15 +02:00
Connection::__construct() parameter config should be array (BC break)
This commit is contained in:
@@ -40,18 +40,7 @@ try {
|
||||
echo "</p>\n";
|
||||
|
||||
|
||||
// connects to MySQL using DSN
|
||||
echo '<p>Connecting to MySQL: ';
|
||||
try {
|
||||
dibi::connect('driver=mysql&host=localhost&username=root&password=xxx&database=test&charset=cp1250');
|
||||
echo 'OK';
|
||||
} catch (Dibi\Exception $e) {
|
||||
echo get_class($e), ': ', $e->getMessage(), "\n";
|
||||
}
|
||||
echo "</p>\n";
|
||||
|
||||
|
||||
// connects to MySQLi using array
|
||||
// connects to MySQLi
|
||||
echo '<p>Connecting to MySQLi: ';
|
||||
try {
|
||||
dibi::connect([
|
||||
|
Reference in New Issue
Block a user