Lines Matching refs:db
10 $db = PDOTest::factory();
12 $client_version = $db->getAttribute(PDO::ATTR_CLIENT_VERSION);
13 $server_version = $db->getAttribute(PDO::ATTR_SERVER_VERSION);
23 $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
24 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
27 bug($db);
30 bug($db, array(PDO::ATTR_EMULATE_PREPARES => 0));
31 bug($db, array(PDO::ATTR_EMULATE_PREPARES => 1));
34 bug($db, array(PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT => 0));
35 bug($db, array(PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT => 1));
38 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 1);
39 bug($db);
40 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
41 bug($db);
44 $db->setAttribute(PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT, 1);
45 bug($db);
46 $db->setAttribute(PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT, 0);
47 bug($db);
53 $db = PDOTest::factory('PDO', false);
54 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
57 bug($db);
58 bug($db, array(PDO::ATTR_EMULATE_PREPARES => 0));
59 bug($db, array(PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT => 0));
66 $db = PDOTest::factory('PDO', false);
67 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
70 bug($db);
71 bug($db, array(PDO::ATTR_EMULATE_PREPARES => 0));
72 bug($db, array(PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT => 0));
80 $db = PDOTest::factory('PDO', false);
81 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
84 bug($db);
85 bug($db, array(PDO::ATTR_EMULATE_PREPARES => 0));
86 bug($db, array(PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT => 0));
87 bug($db, array(
96 function bug($db, $options = array()) {
98 $stmt = $db->prepare("SELECT ?", $options);