From d186405c0090772d1c26788dad9ea973f0421390 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 8 Jun 2013 20:14:33 +0200 Subject: Simplified db connection initialisation code --- program/lib/Roundcube/rcube_db_pgsql.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'program/lib/Roundcube/rcube_db_pgsql.php') diff --git a/program/lib/Roundcube/rcube_db_pgsql.php b/program/lib/Roundcube/rcube_db_pgsql.php index 984dd57a1..d72c9d6b3 100644 --- a/program/lib/Roundcube/rcube_db_pgsql.php +++ b/program/lib/Roundcube/rcube_db_pgsql.php @@ -28,6 +28,17 @@ class rcube_db_pgsql extends rcube_db { public $db_provider = 'postgres'; + /** + * Driver-specific configuration of database connection + * + * @param array $dsn DSN for DB connections + * @param PDO $dbh Connection handler + */ + protected function conn_configure($dsn, $dbh) + { + $this->query("SET NAMES 'utf8'"); + } + /** * Get last inserted record ID * -- cgit v1.2.3