1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-30 01:09:50 +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

@@ -18,7 +18,7 @@
* - host, hostaddr, port, dbname, user, password, connect_timeout, options, sslmode, service => see PostgreSQL API
* - string => or use connection string
* - schema => the schema search path
* - charset => character encoding to set
* - charset => character encoding to set (default is utf8)
* - persistent (bool) => try to find a persistent link?
* - resource (resource) => existing connection resource
* - lazy, profiler, result, substitutes, ... => see DibiConnection options
@@ -62,6 +62,7 @@ class DibiPostgreDriver extends DibiObject implements IDibiDriver, IDibiResultDr
$this->connection = $config['resource'];
} else {
if (!isset($config['charset'])) $config['charset'] = 'utf8';
if (isset($config['string'])) {
$string = $config['string'];
} else {