Lines Matching refs:db
10 $db = MySQLPDOTest::factory();
15 $db = MySQLPDOTest::factory();
17 function bug_pecl_1295($db) {
19 $db->exec('DROP TABLE IF EXISTS test');
20 $db->exec('CREATE TABLE test(id CHAR(1))');
21 $db->exec("INSERT INTO test(id) VALUES ('a')");
22 $stmt = $db->prepare("UPDATE test SET id = 'b'");
24 $stmt = $db->prepare("UPDATE test SET id = 'c'");
26 $stmt = $db->prepare('SELECT id FROM test');
34 $db = MySQLPDOTest::factory();
35 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 1);
36 bug_pecl_1295($db);
39 $db = MySQLPDOTest::factory();
40 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
41 bug_pecl_1295($db);
43 $db->exec('DROP TABLE IF EXISTS test');