Lines Matching refs:db
4 if (!isset($db)) {
5 $db = new Pdo\Pgsql($config['ENV']['PDOTEST_DSN']);
11 attach($db, array_shift($rounds));
13 $db->beginTransaction();
14 $db->exec("set client_min_messages to notice");
15 $db->exec("create temporary table t (a varchar(3))");
16 $db->exec("create function hey() returns trigger as \$\$ begin new.a := 'oh'; raise notice 'I tampe…
17 $db->exec("create trigger hop before insert on t for each row execute procedure hey()");
18 $db->exec("insert into t values ('ah')");
21 attach($db, array_shift($rounds));
26 $db->exec("delete from t");
27 $db->exec("insert into t values ('ah')");
32 $db->setNoticeCallback(null);
33 $db->exec("delete from t");
34 $db->exec("insert into t values ('ah')");
35 var_dump($db->query("select * from t")->fetchAll(PDO::FETCH_ASSOC));
37 $db->rollback();