Lines Matching refs:pdo
4 pdo
9 require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
15 require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
16 $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt');
17 $pdo->setAttribute (\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
19 $pdo->beginTransaction();
22 $pdo->query("CREATE TABLE b67462 (a int NOT NULL PRIMARY KEY DEFERRABLE INITIALLY DEFERRED)");
23 $pdo->query("INSERT INTO b67462 VALUES (1), (1)");
25 var_dump($pdo->inTransaction());
26 $pdo->commit(); // This should fail!
28 var_dump($pdo->inTransaction());
29 var_dump($pdo->beginTransaction());