Lines Matching refs:db
9 $db = MySQLPDOTest::factory();
14 $db = MySQLPDOTest::factory();
16 function bug_pecl_1295($db) {
18 $db->exec('DROP TABLE IF EXISTS test');
19 $db->exec('CREATE TABLE test(id CHAR(1))');
20 $db->exec("INSERT INTO test(id) VALUES ('a')");
21 $stmt = $db->prepare("UPDATE test SET id = 'b'");
23 $stmt = $db->prepare("UPDATE test SET id = 'c'");
25 $stmt = $db->prepare('SELECT id FROM test');
33 $db = MySQLPDOTest::factory();
34 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 1);
35 bug_pecl_1295($db);
38 $db = MySQLPDOTest::factory();
39 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
40 bug_pecl_1295($db);
42 $db->exec('DROP TABLE IF EXISTS test');