Skip to content

Commit

Permalink
ignore charset connection value on postgre
Browse files Browse the repository at this point in the history
  • Loading branch information
oqq committed Feb 17, 2017
1 parent c88ea0f commit 1785398
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Container/AbstractEventStoreFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public function __invoke(ContainerInterface $container): EventStore
$dsn .= 'host=' . $config['connection_options']['host'] . $separator;
$dsn .= 'port=' . $config['connection_options']['port'] . $separator;
$dsn .= 'dbname=' . $config['connection_options']['dbname'] . $separator;
$dsn .= 'charset=' . $config['connection_options']['charset'] . $separator;
if (isset($config['connection_options']['charset'])) {
$dsn .= 'charset=' . $config['connection_options']['charset'] . $separator;
}
$dsn = rtrim($dsn);
$user = $config['connection_options']['user'];
$password = $config['connection_options']['password'];
Expand Down
1 change: 0 additions & 1 deletion src/Container/PostgresEventStoreFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public function defaultOptions(): iterable
'host' => '127.0.0.1',
'dbname' => 'event_store',
'port' => 5432,
'charset' => 'utf8',
],
'load_batch_size' => 1000,
'event_streams_table' => 'event_streams',
Expand Down

0 comments on commit 1785398

Please sign in to comment.