Lines Matching refs:pdo
5 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
7 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
13 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
14 $pdo = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
15 $pdo->setAttribute (\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
17 $pdo->beginTransaction();
20 $pdo->query("CREATE TABLE b67462 (a int NOT NULL PRIMARY KEY DEFERRABLE INITIALLY DEFERRED)");
21 $pdo->query("INSERT INTO b67462 VALUES (1), (1)");
23 var_dump($pdo->inTransaction());
24 $pdo->commit(); // This should fail!
26 var_dump($pdo->inTransaction());
27 var_dump($pdo->beginTransaction());