Lines Matching refs:pdo
5 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
8 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');
16 $pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
18 $pdo->beginTransaction();
20 $pdo->query("CREATE TABLE b66584 (a int)");
21 $pdo->query("INSERT INTO b66584 VALUES (165)");
24 $pdo->setAttribute(\PDO::ATTR_EMULATE_PREPARES, (bool)$i);
27 run($pdo, [0 => 1, 2 => 165, 5 => 3]);
33 …run($pdo, json_decode('{"0":234,"1":165,"2":221,"3":207,"4":188,"5":216,"6":1150,"7":916,"8":967,"…
40 $pdo->query("DROP TABLE b66584");
41 $pdo->rollback();
45 function run($pdo, $data)
49 $stmt = $pdo->prepare("SELECT COUNT(*) FROM b66584 WHERE a IN ({$bind})");