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 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 1);
35 bug($db);
36 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
37 bug($db);
42 $db = PDOTest::factory('PDO', false);
43 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
46 bug($db);
47 bug($db, array(PDO::ATTR_EMULATE_PREPARES => 0));
52 function bug($db, $options = array()) {
54 $stmt = $db->prepare("SELECT ?", $options);