Lines Matching refs:dbh
11 $dbh = new PDO("firebird:dbname=$test_base",$user,$password) or die;
12 $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
14 @$dbh->exec('DROP TABLE price');
15 $dbh->exec("CREATE TABLE PRICE (ID INTEGER NOT NULL, TEXT VARCHAR(10), COST NUMERIC(15, 2))");
16 $dbh->exec("INSERT INTO PRICE (ID, TEXT, COST) VALUES (1, 'test', -1.0)");
17 $dbh->exec("INSERT INTO PRICE (ID, TEXT, COST) VALUES (2, 'test', -0.99)");
18 $dbh->exec("INSERT INTO PRICE (ID, TEXT, COST) VALUES (3, 'test', -1.01)");
20 $dbh->commit();
23 $stmt = $dbh->prepare($query);
31 $stmt = $dbh->prepare('DELETE FROM price');
34 $dbh->commit();
36 $dbh->exec('DROP TABLE price');
39 unset($dbh);