Lines Matching refs:db1
19 $db1 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true));
21 $db1->exec('SET @pdo_persistent_connection=1');
27 $stmt = $db1->query('SELECT CONNECTION_ID() as _con1');
38 $db1 = NULL; /* should be equal to closing to my understanding */
39 $db1 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true));
40 $stmt = $db1->query('SELECT CONNECTION_ID() as _con1');
47 $affected = $db1->exec(sprintf('KILL %d', $con1));
50 if ('00000' == $db1->errorCode()) {
52 @$db1->exec("SET @pdo_persistent_connection=2");
54 if ('HY000' != $db1->errorCode())
55 printf("[004] Wrong error code %s\n", $db1->errorCode());
57 $tmp = implode(' ', $db1->errorInfo());
62 $db1 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => false));
63 $stmt = $db1->query('SELECT CONNECTION_ID() as _con1');
90 (is_object($db1)) ? $db1->errorCode() : 'n/a',
91 (is_object($db1)) ? implode(' ', $db1->errorInfo()) : 'n/a',