Lines Matching refs:db
16 $db = MySQLPDOTest::factory();
17 // $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); // mysql does not support
24 $db->exec($command);
27 $db->query($command)->execute();
31 $db->prepare($command)->execute();
36 var_dump($db->inTransaction());
45 $db->beginTransaction();
46 var_dump($db->inTransaction());
47 $db->exec($end);
48 var_dump($db->inTransaction());
51 $db->exec('START TRANSACTION');
52 var_dump($db->inTransaction());
53 $db->rollBack();
54 var_dump($db->inTransaction());
55 $db->exec('START TRANSACTION');
56 var_dump($db->inTransaction());
57 $db->commit();
58 var_dump($db->inTransaction());
62 $db->beginTransaction();
63 var_dump($db->inTransaction());
64 $db->exec('DROP TABLE IF EXISTS test');
65 var_dump($db->inTransaction());
68 $db->beginTransaction();
69 var_dump($db->inTransaction());
70 $db->commit();
71 var_dump($db->inTransaction());