Skip to content

Commit d2e565d

Browse files
author
Michał
committed
added PDO connection options
1 parent b5dd6c0 commit d2e565d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/library/DB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static function is_connected( ){
306306
static function setup( $string, $username, $password, $name = self::DEFAULT_CONNECTION_NAME, $pdo_options = array() ){
307307

308308
try{
309-
self::$link = new PDO( $string, $username, $password );
309+
self::$link = new PDO( $string, $username, $password, $pdo_options );
310310
self::$link->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
311311
self::$db[$name]['link'] = self::$link;
312312
} catch (PDOException $e) {

0 commit comments

Comments
 (0)