Lines Matching refs:db
17 $db = MySQLPDOTest::factory();
18 // $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); // mysql does not support
25 $db->exec($command);
28 $db->query($command)->execute();
32 $db->prepare($command)->execute();
37 var_dump($db->inTransaction());
46 $db->beginTransaction();
47 var_dump($db->inTransaction());
48 $db->exec($end);
49 var_dump($db->inTransaction());
52 $db->exec('START TRANSACTION');
53 var_dump($db->inTransaction());
54 $db->rollBack();
55 var_dump($db->inTransaction());
56 $db->exec('START TRANSACTION');
57 var_dump($db->inTransaction());
58 $db->commit();
59 var_dump($db->inTransaction());
63 $db->beginTransaction();
64 var_dump($db->inTransaction());
65 $db->exec('DROP TABLE IF EXISTS pdo_mysql_inTransaction');
66 var_dump($db->inTransaction());
69 $db->beginTransaction();
70 var_dump($db->inTransaction());
71 $db->commit();
72 var_dump($db->inTransaction());