fix charset in mysql and pgsql connectors.

This commit is contained in:
Taylor Otwell
2012-02-17 14:38:25 -06:00
parent bf6313e50b
commit 3507d15323
3 changed files with 17 additions and 13 deletions

View File

@@ -32,7 +32,7 @@ class Postgres extends Connector {
if (isset($config['charset']))
{
$connection->prepare("SET NAMES '{$charset}'")->execute();
$connection->prepare("SET NAMES '{$config['charset']}'")->execute();
}
return $connection;