Lines Matching refs:dbh
14 $dbh = getDbConnection();
15 unset($dbh);
27 $dbh = new PDO(
36 if ($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION) === $value['val']) {
42 unset($dbh);
48 $dbh = new PDO(
54 $dbh->query("CREATE TABLE {$table} (val INT)");
57 var_dump($dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true));
58 if ($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION) === true) {
63 $dbh->query("INSERT INTO {$table} VALUES (12)");
64 $r = $dbh->query("SELECT * FROM {$table}");
70 var_dump($dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false));
71 if ($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION) === false) {
77 $dbh->query("INSERT INTO {$table} VALUES (19)");
81 $r = $dbh->query("SELECT * FROM {$table}");
87 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true);
88 $dbh->beginTransaction();
92 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true);
96 var_dump($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION));
101 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false);
105 var_dump($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION));
108 $dbh->commit();
109 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false);
110 $dbh->beginTransaction();
114 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true);
118 var_dump($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION));
123 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false);
127 var_dump($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION));
129 unset($dbh);
134 $dbh = getDbConnection();
135 @$dbh->exec('DROP TABLE transaction_access_mode');
136 unset($dbh);