Skip to content

Commit eb2b113

Browse files
committed
fixed an issue with aws ssl getting stuck with open conecections
1 parent d993cd7 commit eb2b113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function connect($args = null) {
7575
$this->_driver = $db->getAttribute(\PDO::ATTR_DRIVER_NAME);
7676

7777
$db->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
78-
$db->setAttribute(\PDO::ATTR_EMULATE_PREPARES, false);
78+
$db->setAttribute(\PDO::ATTR_EMULATE_PREPARES, $args['sslca'] ? true : false);
7979

8080
$this->db($db);
8181

0 commit comments

Comments
 (0)