1
0
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:
David Grudl
2018-04-17 15:01:30 +02:00
parent 0129d340d3
commit fbdd22de35
3 changed files with 6 additions and 15 deletions

View File

@@ -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([