Skip to content

Commit

Permalink
support database init option options
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHuang committed May 11, 2017
1 parent 0354adc commit c7c0bb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Pool/DatabasePool.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public function getConnection($key)
'charset' => isset($config['charset']) ? $config['charset'] : 'utf8',
'port' => isset($config['port']) ? $config['port'] : 3306,
'prefix' => isset($config['prefix']) ? $config['prefix'] : '',
'option' => isset($config['option']) ? $config['option'] : [],
'command' => isset($config['command']) ? $config['command'] : [],
]
);
}
Expand Down

0 comments on commit c7c0bb7

Please sign in to comment.