1
0
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:
David Grudl
2010-08-04 15:35:34 +02:00
parent 76783b3872
commit 9f982cb310
4 changed files with 7 additions and 5 deletions

View File

@@ -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
),