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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user