We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4e51d8 commit fa583d2Copy full SHA for fa583d2
src/Database/Connector.php
@@ -12,11 +12,15 @@ public function connect(array $config)
12
13
$connection = $this->createConnection($this->getDsn($config), $config, $options);
14
15
- if(array_key_exists('charset', $config) && $config['charset'] != '') {
+ if(isset($config['charset'])) {
16
$connection->prepare("set char_convert '{$config['charset']}'")->execute();
17
}
18
19
- $this->configureIsolationLevel($connection, $config);
+ if (isset($config['isolation_level'])) {
20
+ $connection->prepare(
21
+ "SET TRANSACTION ISOLATION LEVEL {$config['isolation_level']}"
22
+ )->execute();
23
+ }
24
25
return $connection;
26
0 commit comments