mirror of
https://github.com/dg/dibi.git
synced 2025-08-16 11:04:43 +02:00
MySQL, MySQLi & PostgreSql drivers: default character set is 'utf8' (BC break)
This commit is contained in:
@@ -45,7 +45,7 @@ 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=utf8');
|
||||
dibi::connect('driver=mysql&host=localhost&username=root&password=xxx&database=test&charset=cp1250');
|
||||
echo 'OK';
|
||||
|
||||
} catch (DibiException $e) {
|
||||
@@ -65,7 +65,6 @@ try {
|
||||
'username' => 'root',
|
||||
'password' => 'xxx',
|
||||
'database' => 'dibi',
|
||||
'charset' => 'utf8',
|
||||
'options' => array(
|
||||
MYSQLI_OPT_CONNECT_TIMEOUT => 30
|
||||
),
|
||||
|
Reference in New Issue
Block a user