Lines Matching refs:db
14 $db = getDbConnection();
17 $db->query("CREATE table test38955(val int)");
18 $db->beginTransaction();
19 $db->query("INSERT INTO test38955(val) values(1)");
20 $db->query("INSERT INTO test38955(val) values(2)");
21 $db->query("INSERT INTO test38955(val) values(3)");
22 $db->query("INSERT INTO test38955(val) values(4)");
23 $db->commit();
26 $db->beginTransaction();
27 $db->query("INSERT INTO test38955(val) values(5)");
28 $db->query("INSERT INTO test38955(val) values(6)");
29 $db->query("INSERT INTO test38955(val) values(7)");
30 $db->query("INSERT INTO test38955(val) values(8)");
31 $db->rollback();
33 $rs = $db->query("SELECT * FROM test38955");
40 $db = getDbConnection();
41 $db->exec("DROP TABLE IF EXISTS test38955");