Lines Matching refs:db
9 $db = MySQLPDOTest::factory();
14 $db = MySQLPDOTest::factory();
15 MySQLPDOTest::createTestTable($db);
36 $code = $db->errorCode();
37 check_error(2, $db);
39 $stmt = $db->query('SELECT id, label FROM test');
41 check_error(3, $db);
44 $db->exec('DROP TABLE IF EXISTS test');
46 check_error(4, $db);
50 $db->exec('DROP TABLE IF EXISTS unknown');
51 @$stmt = $db->query('SELECT id, label FROM unknown');
52 check_error(7, $db, '42S02');
54 MySQLPDOTest::createTestTable($db);
55 $stmt = $db->query('SELECT id, label FROM test');
56 check_error(8, $db);
59 $db2 = &$db;
60 @$db->query('SELECT id, label FROM unknown');
61 check_error(10, $db, '42S02');
68 $tmp = @$db->getAttribute($invalid_attr);
69 check_error(14, $db, 'IM001');
76 $e->getMessage(), $db->errorCode(), implode(' ', $db->errorInfo()));