Lines Matching refs:db
13 $db = MySQLPDOTest::factory();
15 function bug_pecl_1295($db) {
16 $db->exec('DROP TABLE IF EXISTS test_12925');
17 $db->exec('CREATE TABLE test_12925(id CHAR(1))');
18 $db->exec("INSERT INTO test_12925(id) VALUES ('a')");
19 $stmt = $db->prepare("UPDATE test_12925 SET id = 'b'");
21 $stmt = $db->prepare("UPDATE test_12925 SET id = 'c'");
23 $stmt = $db->prepare('SELECT id FROM test_12925');
30 $db = MySQLPDOTest::factory();
31 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 1);
32 bug_pecl_1295($db);
35 $db = MySQLPDOTest::factory();
36 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
37 bug_pecl_1295($db);
44 $db = MySQLPDOTest::factory();
45 $db->exec('DROP TABLE IF EXISTS test_12925');