Lines Matching refs:pdo
5 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
7 require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
12 require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
13 $pdo = PDOTest::test_factory(__DIR__ . '/common.phpt');
15 $pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
17 $pdo->beginTransaction();
19 $pdo->query("CREATE TABLE b66584 (a int)");
20 $pdo->query("INSERT INTO b66584 VALUES (165)");
23 $pdo->setAttribute(\PDO::ATTR_EMULATE_PREPARES, (bool)$i);
26 run($pdo, [0 => 1, 2 => 165, 5 => 3]);
32 …run($pdo, json_decode('{"0":234,"1":165,"2":221,"3":207,"4":188,"5":216,"6":1150,"7":916,"8":967,"…
39 $pdo->query("DROP TABLE b66584");
40 $pdo->rollback();
44 function run($pdo, $data)
48 $stmt = $pdo->prepare("SELECT COUNT(*) FROM b66584 WHERE a IN ({$bind})");