Lines Matching refs:dbh
14 $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
16 @$dbh->exec('DROP TABLE ddl');
17 @$dbh->exec('DROP GENERATOR gen_ddl_id');
18 @$dbh->exec('DROP TRIGGER ddl_bi');
20 $dbh->exec("CREATE TABLE ddl (id INT NOT NULL PRIMARY KEY, text BLOB SUB_TYPE 1)");
21 $dbh->exec("CREATE GENERATOR gen_ddl_id");
22 $dbh->exec("CREATE TRIGGER ddl_bi FOR ddl BEFORE INSERT AS
25 $dbh->setAttribute(PDO::ATTR_AUTOCOMMIT,0);
27 $dbh->beginTransaction();
28 var_dump($dbh->exec("INSERT INTO ddl (text) VALUES ('bla')"));
29 var_dump($dbh->exec("UPDATE ddl SET text='blabla'"));
30 $dbh->rollback();
32 $dbh->beginTransaction();
33 var_dump($dbh->exec("DELETE FROM ddl"));
34 $dbh->commit();
36 unset($dbh);