Lines Matching refs:db
8 $db = MySQLPDOTest::factory();
9 if (false == MySQLPDOTest::detect_transactional_mysql_engine($db))
15 $db = MySQLPDOTest::factory();
16 MySQLPDOTest::createTestTable($db, MySQLPDOTest::detect_transactional_mysql_engine($db));
25 function set_and_get($offset, $db, $attribute, $value) {
30 if (!$db->setAttribute($attribute, $value)) {
42 $tmp = $db->getAttribute($attribute);
52 $db->errorCode(), implode(' ', $db->errorInfo()));
59 set_and_get(1, $db, PDO::ATTR_AUTOCOMMIT, 1);
61 set_and_get(2, $db, PDO::ATTR_AUTOCOMMIT, 0);
62 set_and_get(3, $db, PDO::ATTR_AUTOCOMMIT, -1);
64 set_and_get(4, $db, PDO::ATTR_AUTOCOMMIT, $obj);
66 set_and_get(5, $db, PDO::MYSQL_ATTR_LOCAL_INFILE, 1);
67 set_and_get(6, $db, PDO::MYSQL_ATTR_LOCAL_INFILE, 0);
68 set_and_get(7, $db, PDO::MYSQL_ATTR_LOCAL_INFILE, -1);
70 set_and_get(8, $db, PDO::MYSQL_ATTR_LOCAL_INFILE, $tmp);
72 set_and_get(9, $db, PPDO::MYSQL_ATTR_INIT_COMMAND, '');
73 set_and_get(10, $db, PPDO::MYSQL_ATTR_INIT_COMMAND, 'SOME SQL');
74 set_and_get(11, $db, PPDO::MYSQL_ATTR_INIT_COMMAND, -1);