Lines Matching refs:dsn
16 $dsn = MySQLPDOTest::getDSN();
21 $db = new PDO($dsn, $user, $pass, array($option => $value));
37 $dsn = MySQLPDOTest::getDSN();
73 if (NULL !== ($db = @new PDO($dsn, $user, $pass, 'wrong type')))
78 if (!is_object($db = new PDO($dsn, $user, $pass, array())))
82 if (is_object($db = new PDO($dsn, $user, $pass, array($invalid => true))))
85 $db = new PDO($dsn, $user, $pass);
96 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_AUTOCOMMIT => true));
100 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_AUTOCOMMIT => false));
105 if (!is_object($db = new PDO($dsn, $user, $pass, array(PDO::ATTR_TIMEOUT => 10))))
108 if (!is_object($db = new PDO($dsn, $user, $pass, array(PDO::ATTR_TIMEOUT => PHP_INT_MAX))))
111 if (!is_object($db = new PDO($dsn, $user, $pass, array(PDO::ATTR_TIMEOUT => -PHP_INT_MAX))))
115 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_EMULATE_PREPARES => true));
124 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_EMULATE_PREPARES => false));
135 …$db = new PDO($dsn, $user, $pass, array(PDO::ATTR_EMULATE_PREPARES => true, PDO::MYSQL_ATTR_DIRECT…
141 …$db = new PDO($dsn, $user, $pass, array(PDO::ATTR_EMULATE_PREPARES => false, PDO::MYSQL_ATTR_DIREC…